diff options
author | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2009-09-05 07:53:36 +0000 |
---|---|---|
committer | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2009-09-05 07:53:36 +0000 |
commit | a6c3303f88ab88d433a73609234edc2b435732c1 (patch) | |
tree | 32501aa3ee59e35503e952ca23e0eaf682f0dcc9 /test/net/java/sip/communicator/slick/netaddr | |
parent | 144a0baee317ba2973410e09135706fe3d2e325a (diff) | |
download | jitsi-a6c3303f88ab88d433a73609234edc2b435732c1.zip jitsi-a6c3303f88ab88d433a73609234edc2b435732c1.tar.gz jitsi-a6c3303f88ab88d433a73609234edc2b435732c1.tar.bz2 |
Fixes warnings, mostly ones related to raw-type uses.
Diffstat (limited to 'test/net/java/sip/communicator/slick/netaddr')
-rw-r--r-- | test/net/java/sip/communicator/slick/netaddr/TestNetworkAddressManagerService.java | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/test/net/java/sip/communicator/slick/netaddr/TestNetworkAddressManagerService.java b/test/net/java/sip/communicator/slick/netaddr/TestNetworkAddressManagerService.java index 8ca6985..4ab0214 100644 --- a/test/net/java/sip/communicator/slick/netaddr/TestNetworkAddressManagerService.java +++ b/test/net/java/sip/communicator/slick/netaddr/TestNetworkAddressManagerService.java @@ -92,15 +92,16 @@ public class TestNetworkAddressManagerService extends TestCase { private static boolean isLocalInterfaceAddress(InetAddress address) { try { - Enumeration intfs = NetworkInterface.getNetworkInterfaces(); + Enumeration<NetworkInterface> intfs + = NetworkInterface.getNetworkInterfaces(); while (intfs.hasMoreElements()) { - NetworkInterface intf = (NetworkInterface) intfs.nextElement(); - Enumeration addrs = intf.getInetAddresses(); + NetworkInterface intf = intfs.nextElement(); + Enumeration<InetAddress> addrs = intf.getInetAddresses(); while (addrs.hasMoreElements()) { try { - InetAddress addr = (InetAddress) addrs.nextElement(); + InetAddress addr = addrs.nextElement(); if(addr.equals(address)) return true; } catch (Exception e) @@ -610,6 +611,7 @@ public class TestNetworkAddressManagerService extends TestCase { return null; } + private void initProperties() { try @@ -622,8 +624,4 @@ public class TestNetworkAddressManagerService extends TestCase { } catch(Exception ex){} } - - - - } |