String performance and maintenability
[controller.git] / opendaylight / md-sal / cds-access-api / src / test / java / org / opendaylight / controller / cluster / access / commands / NotLeaderExceptionTest.java
index 32cc72f13a7c9421b14171396ba2795da7fc2afc..c018f00fd64c00b330a555818a02e7497023ddfd 100644 (file)
@@ -30,8 +30,7 @@ public class NotLeaderExceptionTest extends RequestExceptionTest<NotLeaderExcept
     @Override
     protected void checkMessage() {
         final String message = OBJECT.getMessage();
-        final String checkMessage = new StringBuilder("Actor ").append(ACTOR.toString())
-                .append(" is not the current leader").toString();
+        final String checkMessage = "Actor " + ACTOR + " is not the current leader";
         assertTrue(checkMessage.equals(message));
         assertNull(OBJECT.getCause());
     }