summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/RoutableReference.java
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2008-01-30 06:15:20 -0800
committerMark Spruiell <mes@zeroc.com>2008-01-30 06:15:20 -0800
commitf3c3029ff651d294a1a0df0e79e72771307310fc (patch)
tree1f061a96f5f46051b6daf45ccbdb63ebd2cdd746 /java/src/IceInternal/RoutableReference.java
parentFixed and moved fixVersion.py/fixCopyright.py (diff)
downloadice-f3c3029ff651d294a1a0df0e79e72771307310fc.tar.bz2
ice-f3c3029ff651d294a1a0df0e79e72771307310fc.tar.xz
ice-f3c3029ff651d294a1a0df0e79e72771307310fc.zip
using Java5 types in Ice core; general cleanup
Diffstat (limited to 'java/src/IceInternal/RoutableReference.java')
-rw-r--r--java/src/IceInternal/RoutableReference.java22
1 files changed, 10 insertions, 12 deletions
diff --git a/java/src/IceInternal/RoutableReference.java b/java/src/IceInternal/RoutableReference.java
index 996611d0dd4..6bf1640750e 100644
--- a/java/src/IceInternal/RoutableReference.java
+++ b/java/src/IceInternal/RoutableReference.java
@@ -609,7 +609,7 @@ public class RoutableReference extends Reference
RoutableReference(Instance instance,
Ice.Communicator communicator,
Ice.Identity identity,
- java.util.Map context,
+ java.util.Map<String, String> context,
String facet,
int mode,
boolean secure,
@@ -672,7 +672,7 @@ public class RoutableReference extends Reference
private EndpointI[]
filterEndpoints(EndpointI[] allEndpoints)
{
- java.util.ArrayList endpoints = new java.util.ArrayList();
+ java.util.List<EndpointI> endpoints = new java.util.ArrayList<EndpointI>();
//
// Filter out unknown endpoints.
@@ -697,10 +697,10 @@ public class RoutableReference extends Reference
//
// Filter out datagram endpoints.
//
- java.util.Iterator i = endpoints.iterator();
+ java.util.Iterator<EndpointI> i = endpoints.iterator();
while(i.hasNext())
{
- EndpointI endpoint = (EndpointI)i.next();
+ EndpointI endpoint = i.next();
if(endpoint.datagram())
{
i.remove();
@@ -715,10 +715,10 @@ public class RoutableReference extends Reference
//
// Filter out non-datagram endpoints.
//
- java.util.Iterator i = endpoints.iterator();
+ java.util.Iterator<EndpointI> i = endpoints.iterator();
while(i.hasNext())
{
- EndpointI endpoint = (EndpointI)i.next();
+ EndpointI endpoint = i.next();
if(!endpoint.datagram())
{
i.remove();
@@ -759,10 +759,10 @@ public class RoutableReference extends Reference
DefaultsAndOverrides overrides = getInstance().defaultsAndOverrides();
if(overrides.overrideSecure ? overrides.overrideSecureValue : getSecure())
{
- java.util.Iterator i = endpoints.iterator();
+ java.util.Iterator<EndpointI> i = endpoints.iterator();
while(i.hasNext())
{
- EndpointI endpoint = (EndpointI)i.next();
+ EndpointI endpoint = i.next();
if(!endpoint.secure())
{
i.remove();
@@ -951,7 +951,7 @@ public class RoutableReference extends Reference
}
}
- static class EndpointComparator implements java.util.Comparator
+ static class EndpointComparator implements java.util.Comparator<EndpointI>
{
EndpointComparator(boolean preferSecure)
{
@@ -959,10 +959,8 @@ public class RoutableReference extends Reference
}
public int
- compare(java.lang.Object l, java.lang.Object r)
+ compare(EndpointI le, EndpointI re)
{
- IceInternal.EndpointI le = (IceInternal.EndpointI)l;
- IceInternal.EndpointI re = (IceInternal.EndpointI)r;
boolean ls = le.secure();
boolean rs = re.secure();
if((ls && rs) || (!ls && !rs))