diff options
-rw-r--r-- | java-compat/src/Ice/src/main/java/IceInternal/OutgoingConnectionFactory.java | 2 | ||||
-rw-r--r-- | java/src/Ice/src/main/java/com/zeroc/IceInternal/OutgoingConnectionFactory.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/java-compat/src/Ice/src/main/java/IceInternal/OutgoingConnectionFactory.java b/java-compat/src/Ice/src/main/java/IceInternal/OutgoingConnectionFactory.java index 2d6ad01791b..dd2bb1828c1 100644 --- a/java-compat/src/Ice/src/main/java/IceInternal/OutgoingConnectionFactory.java +++ b/java-compat/src/Ice/src/main/java/IceInternal/OutgoingConnectionFactory.java @@ -265,7 +265,7 @@ public final class OutgoingConnectionFactory { for(Ice.ConnectionI connection : connectionList) { - if(connection.endpoint() == endpoint) + if(connection.endpoint().equals(endpoint)) { connection.setAdapter(adapter); } diff --git a/java/src/Ice/src/main/java/com/zeroc/IceInternal/OutgoingConnectionFactory.java b/java/src/Ice/src/main/java/com/zeroc/IceInternal/OutgoingConnectionFactory.java index 5b1fa0d1cbc..d1e30b838ba 100644 --- a/java/src/Ice/src/main/java/com/zeroc/IceInternal/OutgoingConnectionFactory.java +++ b/java/src/Ice/src/main/java/com/zeroc/IceInternal/OutgoingConnectionFactory.java @@ -273,7 +273,7 @@ public final class OutgoingConnectionFactory { for(ConnectionI connection : connectionList) { - if(connection.endpoint() == endpoint) + if(connection.endpoint().equals(endpoint)) { connection.setAdapter(adapter); } |