Sho SHIMIZU
Committed by Gerrit Code Review

Remove unnecessary String constructor call

Change-Id: I559e270b38f3f9d7e1cdb5544ca6c9d3e73100d4
...@@ -107,7 +107,7 @@ import com.fasterxml.jackson.databind.node.ObjectNode; ...@@ -107,7 +107,7 @@ import com.fasterxml.jackson.databind.node.ObjectNode;
107 */ 107 */
108 public class BgpTopologyProviderTest { 108 public class BgpTopologyProviderTest {
109 private static final DeviceId DID2 = DeviceId.deviceId("l3:rd=0::routinguniverse=0:asn=10"); 109 private static final DeviceId DID2 = DeviceId.deviceId("l3:rd=0::routinguniverse=0:asn=10");
110 - private static final String UNKNOWN = new String("unknown"); 110 + private static final String UNKNOWN = "unknown";
111 public static ProviderId providerId = new ProviderId("l3", "foo"); 111 public static ProviderId providerId = new ProviderId("l3", "foo");
112 private static final NodeId NODE1 = new NodeId("Master1"); 112 private static final NodeId NODE1 = new NodeId("Master1");
113 113
......
...@@ -66,7 +66,7 @@ import static org.hamcrest.core.IsNull.nullValue; ...@@ -66,7 +66,7 @@ import static org.hamcrest.core.IsNull.nullValue;
66 * Test for PCEP topology provider. 66 * Test for PCEP topology provider.
67 */ 67 */
68 public class PcepTopologyProviderTest { 68 public class PcepTopologyProviderTest {
69 - private static final String UNKNOWN = new String("unknown"); 69 + private static final String UNKNOWN = "unknown";
70 public static ProviderId providerId = new ProviderId("l3", "foo"); 70 public static ProviderId providerId = new ProviderId("l3", "foo");
71 private final PcepClientControllerAdapter clientController = new PcepClientControllerAdapter(); 71 private final PcepClientControllerAdapter clientController = new PcepClientControllerAdapter();
72 private final PcepTopologyProvider provider = new PcepTopologyProvider(); 72 private final PcepTopologyProvider provider = new PcepTopologyProvider();
......