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>
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);
}