Fix checkstyle 34/101034/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 25 Apr 2022 19:11:44 +0000 (21:11 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 10 May 2022 05:51:38 +0000 (07:51 +0200)
Updated checkstyle is finding a few violations, fix them up.

Change-Id: I7a9cb9a19dc20de08a856c7752af8f060585e342
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 53d50535b20340477f76e0998297b43430b2aacb)

binding/mdsal-binding-api/src/main/java/org/opendaylight/mdsal/binding/api/MountPointService.java
binding/mdsal-binding-api/src/main/java/org/opendaylight/mdsal/binding/api/query/MatchBuilderPath.java
binding/mdsal-binding-dom-adapter/src/test/java/org/opendaylight/mdsal/binding/dom/adapter/invoke/NotificationListenerInvokerTest.java
entityownership/mdsal-eos-common-api/src/main/java/org/opendaylight/mdsal/eos/common/api/EntityOwnershipChangeState.java

index 7d7000e7c09548cc61649d1223ac3d25e1d86f05..e5752124f95a66509412b2c58c3444f25aaebb35 100644 (file)
@@ -18,13 +18,10 @@ public interface MountPointService extends BindingService {
 
     <T extends MountPointListener> ListenerRegistration<T> registerListener(InstanceIdentifier<?> path, T listener);
 
-
-    public interface MountPointListener extends EventListener {
+    interface MountPointListener extends EventListener {
 
         void onMountPointCreated(InstanceIdentifier<?> path);
 
         void onMountPointRemoved(InstanceIdentifier<?> path);
-
     }
-
 }
index 24fcfc22ab745077396ff77bc81c62e21b987ff0..f6389b90af0671e4f3984992f43cc13fff525c38 100644 (file)
@@ -202,7 +202,7 @@ public interface MatchBuilderPath<O extends DataObject, T extends DataObject> ex
      * @param <C> Child type
      */
     @FunctionalInterface
-    public interface LeafReference<P, C> extends Serializable {
+    interface LeafReference<P, C> extends Serializable {
         /**
          * Dummy method to express the method signature of a typical getter. Due to this match we can match any Java
          * method reference which takes in {@code parent} and results in {@code child} -- expose the feature of using
@@ -218,72 +218,72 @@ public interface MatchBuilderPath<O extends DataObject, T extends DataObject> ex
     }
 
     @FunctionalInterface
-    public interface BooleanLeafReference<P> extends LeafReference<P, Boolean> {
+    interface BooleanLeafReference<P> extends LeafReference<P, Boolean> {
 
     }
 
     @FunctionalInterface
-    public interface Decimal64LeafReference<P> extends LeafReference<P, BigDecimal> {
+    interface Decimal64LeafReference<P> extends LeafReference<P, BigDecimal> {
 
     }
 
     @FunctionalInterface
-    public interface EmptyLeafReference<P> extends LeafReference<P, Empty> {
+    interface EmptyLeafReference<P> extends LeafReference<P, Empty> {
 
     }
 
     @FunctionalInterface
-    public interface StringLeafReference<P> extends LeafReference<P, String> {
+    interface StringLeafReference<P> extends LeafReference<P, String> {
 
     }
 
     @FunctionalInterface
-    public interface Int8LeafReference<P> extends LeafReference<P, Byte> {
+    interface Int8LeafReference<P> extends LeafReference<P, Byte> {
 
     }
 
     @FunctionalInterface
-    public interface Int16LeafReference<P> extends LeafReference<P, Short> {
+    interface Int16LeafReference<P> extends LeafReference<P, Short> {
 
     }
 
     @FunctionalInterface
-    public interface Int32LeafReference<P> extends LeafReference<P, Integer> {
+    interface Int32LeafReference<P> extends LeafReference<P, Integer> {
 
     }
 
     @FunctionalInterface
-    public interface Int64LeafReference<P> extends LeafReference<P, Long> {
+    interface Int64LeafReference<P> extends LeafReference<P, Long> {
 
     }
 
     @FunctionalInterface
-    public interface Uint8LeafReference<P> extends LeafReference<P, Uint8> {
+    interface Uint8LeafReference<P> extends LeafReference<P, Uint8> {
 
     }
 
     @FunctionalInterface
-    public interface Uint16LeafReference<P> extends LeafReference<P, Uint16> {
+    interface Uint16LeafReference<P> extends LeafReference<P, Uint16> {
 
     }
 
     @FunctionalInterface
-    public interface Uint32LeafReference<P> extends LeafReference<P, Uint32> {
+    interface Uint32LeafReference<P> extends LeafReference<P, Uint32> {
 
     }
 
     @FunctionalInterface
-    public interface Uint64LeafReference<P> extends LeafReference<P, Uint64> {
+    interface Uint64LeafReference<P> extends LeafReference<P, Uint64> {
 
     }
 
     @FunctionalInterface
-    public interface IdentityLeafReference<P, T extends BaseIdentity> extends LeafReference<P, T> {
+    interface IdentityLeafReference<P, T extends BaseIdentity> extends LeafReference<P, T> {
 
     }
 
     @FunctionalInterface
-    public interface TypeObjectLeafReference<P, T extends TypeObject> extends LeafReference<P, T> {
+    interface TypeObjectLeafReference<P, T extends TypeObject> extends LeafReference<P, T> {
 
     }
 }
index 63417f389bb464dd57a45af59b6221ee8d58d33f..cbe9c2e68629b95e109177b42aefae61d0826452 100644 (file)
@@ -52,11 +52,13 @@ public class NotificationListenerInvokerTest {
 
     public interface TestInterface extends NotificationListener, Augmentation {
         QName QNAME = QName.create("test", "test");
+
         void onTestNotificationInterface(TestNotificationInterface notif);
     }
 
     private interface TestPrivateInterface extends NotificationListener, Augmentation {
         QName QNAME = QName.create("test", "test");
+
         void onTestNotificationInterface(TestNotificationInterface notif);
     }
 
index 16237900879ac7eb794821efbcde15422b79db13..b9d4c9ebc501d1adfc12d1f910460f3ff35cec6f 100644 (file)
@@ -51,9 +51,9 @@ public enum EntityOwnershipChangeState {
     REMOTE_OWNERSHIP_LOST_NO_OWNER(false, false, false);
 
     private static final Map<Key, EntityOwnershipChangeState> BY_KEY;
+
     static {
-        final Builder<Key, EntityOwnershipChangeState> builder
-                    = ImmutableMap.builder();
+        final Builder<Key, EntityOwnershipChangeState> builder = ImmutableMap.builder();
         for (final EntityOwnershipChangeState e: values()) {
             builder.put(new Key(e.wasOwner, e.isOwner, e.hasOwner), e);
         }