[jitsi-dev] [jitsi-commits] master: Fixes java 1.6 compatibility issue. (27fb77b)


#1

Mmm ... how does this fox 1.6 compatibility?

--sent from my mobile

···

On 14 May 2014 4:49 PM, <hristo@jitsi.org> wrote:

Repository : ssh://lists.jitsi.org/jitsi

On branch : master
Link :
https://github.com/jitsi/jitsi/compare/4a79f36147f50c24eb89ca2c7cc87a000632a5be...27fb77b5495790de32a4b2d817442b2b86d5bc73

>---------------------------------------------------------------

commit 27fb77b5495790de32a4b2d817442b2b86d5bc73
Author: hristoterezov <hristo@jitsi.org>
Date: Wed May 14 17:49:33 2014 +0300

    Fixes java 1.6 compatibility issue.

>---------------------------------------------------------------

27fb77b5495790de32a4b2d817442b2b86d5bc73
.../impl/neomedia/MediaConfigurationImpl.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git
a/src/net/java/sip/communicator/impl/neomedia/MediaConfigurationImpl.java
b/src/net/java/sip/communicator/impl/neomedia/MediaConfigurationImpl.java
index 430fbc0..dc4754c 100644
---
a/src/net/java/sip/communicator/impl/neomedia/MediaConfigurationImpl.java
+++
b/src/net/java/sip/communicator/impl/neomedia/MediaConfigurationImpl.java
@@ -462,7 +462,7 @@ public class MediaConfigurationImpl
         /**
          * The <tt>JList</tt> with the devices.
          */
- private JList<CaptureDevice> deviceList = null;
+ private JList deviceList = null;

         /**
          * The current component that displays the list with the devices.
@@ -501,7 +501,7 @@ public class MediaConfigurationImpl
             }
             else
             {
- deviceList = new JList<CaptureDevice>();
+ deviceList = new JList();
                 deviceList.setModel(model);
                 JScrollPane listScroller = new
JScrollPane(deviceComboBox);
                 listScroller.setPreferredSize(new Dimension(200, 38));

_______________________________________________
commits mailing list
commits@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/commits


#2

In Java 1.6 JList does’t take parameters.

http://docs.oracle.com/javase/6/docs/api/javax/swing/JList.html

···

On May 14, 2014, at 5:51 PM, Emil Ivov <emcho@jitsi.org> wrote:

Mmm ... how does this fox 1.6 compatibility?

--sent from my mobile

On 14 May 2014 4:49 PM, <hristo@jitsi.org> wrote:
Repository : ssh://lists.jitsi.org/jitsi

On branch : master
Link : https://github.com/jitsi/jitsi/compare/4a79f36147f50c24eb89ca2c7cc87a000632a5be...27fb77b5495790de32a4b2d817442b2b86d5bc73

>---------------------------------------------------------------

commit 27fb77b5495790de32a4b2d817442b2b86d5bc73
Author: hristoterezov <hristo@jitsi.org>
Date: Wed May 14 17:49:33 2014 +0300

    Fixes java 1.6 compatibility issue.

>---------------------------------------------------------------

27fb77b5495790de32a4b2d817442b2b86d5bc73
.../impl/neomedia/MediaConfigurationImpl.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/net/java/sip/communicator/impl/neomedia/MediaConfigurationImpl.java b/src/net/java/sip/communicator/impl/neomedia/MediaConfigurationImpl.java
index 430fbc0..dc4754c 100644
--- a/src/net/java/sip/communicator/impl/neomedia/MediaConfigurationImpl.java
+++ b/src/net/java/sip/communicator/impl/neomedia/MediaConfigurationImpl.java
@@ -462,7 +462,7 @@ public class MediaConfigurationImpl
         /**
          * The <tt>JList</tt> with the devices.
          */
- private JList<CaptureDevice> deviceList = null;
+ private JList deviceList = null;

         /**
          * The current component that displays the list with the devices.
@@ -501,7 +501,7 @@ public class MediaConfigurationImpl
             }
             else
             {
- deviceList = new JList<CaptureDevice>();
+ deviceList = new JList();
                 deviceList.setModel(model);
                 JScrollPane listScroller = new JScrollPane(deviceComboBox);
                 listScroller.setPreferredSize(new Dimension(200, 38));

_______________________________________________
commits mailing list
commits@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/commits
_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev