diff options
author | Mark Spruiell <mes@zeroc.com> | 2009-04-03 15:15:13 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2009-04-03 15:15:13 -0700 |
commit | b415955846ce0d5c2e0c283f897190ccd2c3616a (patch) | |
tree | 10daf6bb8a05edf5052a33f10ea16c73d8ae0d89 /java/src/IceInternal/RoutableReference.java | |
parent | Bug 3465 - Remove _adapter members from test where unecessary (diff) | |
download | ice-b415955846ce0d5c2e0c283f897190ccd2c3616a.tar.bz2 ice-b415955846ce0d5c2e0c283f897190ccd2c3616a.tar.xz ice-b415955846ce0d5c2e0c283f897190ccd2c3616a.zip |
removing Java2 mapping
Diffstat (limited to 'java/src/IceInternal/RoutableReference.java')
-rw-r--r-- | java/src/IceInternal/RoutableReference.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/java/src/IceInternal/RoutableReference.java b/java/src/IceInternal/RoutableReference.java index 1f17b9cb854..c309e7d8298 100644 --- a/java/src/IceInternal/RoutableReference.java +++ b/java/src/IceInternal/RoutableReference.java @@ -259,9 +259,9 @@ public class RoutableReference extends Reference if(_endpoints.length > 0) { assert(_adapterId.length() == 0); - for(int i = 0; i < _endpoints.length; i++) + for(EndpointI endpoint : _endpoints) { - _endpoints[i].streamWrite(s); + endpoint.streamWrite(s); } } else @@ -284,9 +284,9 @@ public class RoutableReference extends Reference s.append(super.toString()); if(_endpoints.length > 0) { - for(int i = 0; i < _endpoints.length; i++) + for(EndpointI endpoint : _endpoints) { - String endp = _endpoints[i].toString(); + String endp = endpoint.toString(); if(endp != null && endp.length() > 0) { s.append(':'); @@ -650,11 +650,11 @@ public class RoutableReference extends Reference // // Filter out unknown endpoints. // - for(int i = 0; i < allEndpoints.length; i++) + for(EndpointI endpoint : allEndpoints) { - if(!allEndpoints[i].unknown()) + if(!endpoint.unknown()) { - endpoints.add(allEndpoints[i]); + endpoints.add(endpoint); } } @@ -704,14 +704,14 @@ public class RoutableReference extends Reference // // Sort the endpoints according to the endpoint selection type. // - switch(getEndpointSelection().value()) + switch(getEndpointSelection()) { - case Ice.EndpointSelectionType._Random: + case Random: { java.util.Collections.shuffle(endpoints); break; } - case Ice.EndpointSelectionType._Ordered: + case Ordered: { // Nothing to do. break; |