remote: remove useless String.toString()
authorSonia Farrah <sonia.farrah@ericsson.com>
Fri, 13 May 2016 17:20:09 +0000 (13:20 -0400)
committerBernd Hufmann <bernd.hufmann@ericsson.com>
Sat, 14 May 2016 11:24:57 +0000 (07:24 -0400)
This makes the code more efficient and also makes it clear that we are
dealing with a string.

Change-Id: Ifd88e285a4696d1fff8197ec6475665091f3de67
Signed-off-by: Sonia Farrah <sonia.farrah@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/72744
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
tmf/org.eclipse.tracecompass.tmf.remote.core/src/org/eclipse/tracecompass/tmf/remote/core/proxy/TmfRemoteConnectionFactory.java

index c602684c67a32ce3ba05cbc57affda246dd740ea..e07cd42676533678ec2e77b6347b766cdf67da73 100644 (file)
@@ -228,8 +228,8 @@ public class TmfRemoteConnectionFactory {
         return manager.getAllRemoteConnections().stream()
             .filter(connection ->
                 (connection != null) &&
-                connection.getConnectionType().getId().equals(remoteServicesId.toString()) &&
-                connection.getName().equals(name.toString()))
+                connection.getConnectionType().getId().equals(remoteServicesId) &&
+                connection.getName().equals(name))
             .findFirst()
             .orElse(null);
     }
This page took 0.033215 seconds and 5 git commands to generate.