Fix checkstyle reported by odlparent-3.0.0
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / datastore / shardmanager / ShardManagerTest.java
index b3d6628375487200be0e378dbd032d830af6f4a6..ee0f91ee27653920f3f9293599647c3c9ace4ed8 100644 (file)
@@ -141,10 +141,10 @@ public class ShardManagerTest extends AbstractShardManagerTest {
     private ActorRef newMockShardActor(final ActorSystem system, final String shardName, final String memberName) {
         String name = ShardIdentifier.create(shardName, MemberName.forName(memberName), "config").toString();
         if (system == getSystem()) {
-            return actorFactory.createActor(Props.create(MessageCollectorActor.class), name);
+            return actorFactory.createActor(MessageCollectorActor.props(), name);
         }
 
-        return system.actorOf(Props.create(MessageCollectorActor.class), name);
+        return system.actorOf(MessageCollectorActor.props(), name);
     }
 
     private Props newShardMgrProps() {
@@ -246,9 +246,9 @@ public class ShardManagerTest extends AbstractShardManagerTest {
         };
 
         final ActorRef defaultShardActor = actorFactory.createActor(
-                Props.create(MessageCollectorActor.class), actorFactory.generateActorId("default"));
+                MessageCollectorActor.props(), actorFactory.generateActorId("default"));
         final ActorRef topologyShardActor = actorFactory.createActor(
-                Props.create(MessageCollectorActor.class), actorFactory.generateActorId("topology"));
+                MessageCollectorActor.props(), actorFactory.generateActorId("topology"));
 
         final Map<String, Entry<ActorRef, DatastoreContext>> shardInfoMap = Collections.synchronizedMap(
                 new HashMap<String, Entry<ActorRef, DatastoreContext>>());
@@ -2092,7 +2092,7 @@ public class ShardManagerTest extends AbstractShardManagerTest {
         private CountDownLatch memberReachableReceived = new CountDownLatch(1);
         private volatile MessageInterceptor messageInterceptor;
 
-        private TestShardManager(final Builder builder) {
+        TestShardManager(final Builder builder) {
             super(builder);
             shardActor = builder.shardActor;
             shardActors = builder.shardActors;