Fix sonar warnings in sal-distributed-datastore
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / messages / PrimaryShardInfo.java
index 27d247512ca0b37349e0686955d449fc0dcd1dbd..f739e1e6c4ab66de3f958f5c39d98a241e8b9f04 100644 (file)
@@ -39,7 +39,8 @@ public class PrimaryShardInfo {
     /**
      * Returns an ActorSelection representing the primary shard actor.
      */
-    public @Nonnull ActorSelection getPrimaryShardActor() {
+    @Nonnull
+    public ActorSelection getPrimaryShardActor() {
         return primaryShardActor;
     }
 
@@ -54,7 +55,8 @@ public class PrimaryShardInfo {
      * Returns an Optional whose value contains the primary shard's DataTree if the primary shard is local
      * to the caller. Otherwise the Optional value is absent.
      */
-    public @Nonnull Optional<DataTree> getLocalShardDataTree() {
+    @Nonnull
+    public Optional<DataTree> getLocalShardDataTree() {
         return Optional.ofNullable(localShardDataTree);
     }
 }