Fix checkstyle 68/85268/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 4 Sep 2019 06:59:26 +0000 (08:59 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 20 Oct 2019 09:13:12 +0000 (11:13 +0200)
This updates more checkstyle issues identified.

Change-Id: I0560418e647b4305f8bbd362254983456c2f2222
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 341a4f87202287269fa08050953e3acf52461d8b)

netconf/tools/netconf-testtool/src/main/java/org/opendaylight/netconf/test/tool/NetconfDeviceSimulator.java
netconf/tools/netconf-testtool/src/main/java/org/opendaylight/netconf/test/tool/monitoring/NetconfState.java
restconf/restconf-common/src/main/java/org/opendaylight/restconf/common/context/WriterParameters.java
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/handlers/Handler.java

index 321b202604968b3a65d4339c71c2475fd03a0a3f..9e3d9e94c4710622d5a63c43d45f56840254eb6c 100644 (file)
@@ -303,7 +303,9 @@ public class NetconfDeviceSimulator implements Closeable {
         consumer.registerSchemaSourceListener(TextToASTTransformer.create(consumer, consumer));
         consumer.registerSchemaSourceListener(new SchemaSourceListener() {
             @Override
-            public void schemaSourceEncountered(final SchemaSourceRepresentation schemaSourceRepresentation) {}
+            public void schemaSourceEncountered(final SchemaSourceRepresentation schemaSourceRepresentation) {
+
+            }
 
             @Override
             public void schemaSourceRegistered(final Iterable<PotentialSchemaSource<?>> potentialSchemaSources) {
@@ -313,7 +315,9 @@ public class NetconfDeviceSimulator implements Closeable {
             }
 
             @Override
-            public void schemaSourceUnregistered(final PotentialSchemaSource<?> potentialSchemaSource) {}
+            public void schemaSourceUnregistered(final PotentialSchemaSource<?> potentialSchemaSource) {
+
+            }
         });
 
         if (configuration.getSchemasDir() != null) {
index 6825f8dca47bb717b7394d38276486d6d9867c5d..c7bd7640081af2f3af53290fda778f2c7005648c 100644 (file)
@@ -27,7 +27,9 @@ public final class NetconfState {
         this.schemas = monitoringService.getSchemas();
     }
 
-    public NetconfState() {}
+    public NetconfState() {
+
+    }
 
     @XmlElementWrapper(name = "schemas")
     @XmlElement(name = "schema")
index 8941f9751ccd1a692c426c83a9ef8d30cb6f51cc..95cdde83a34f924f3cd6405378bc6f98edab5973 100644 (file)
@@ -5,7 +5,6 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.restconf.common.context;
 
 import java.util.List;
@@ -54,7 +53,9 @@ public final class WriterParameters {
         private boolean prettyPrint;
         private boolean tagged;
 
-        public WriterParametersBuilder() {}
+        public WriterParametersBuilder() {
+
+        }
 
         public WriterParametersBuilder setContent(final String content) {
             this.content = content;
index 31bfaeb52d508bffc9a972d6524702bc42cb8a4d..258c68aaf291db9a4c4028b9b405ba0e59c97b16 100644 (file)
@@ -5,14 +5,12 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.restconf.nb.rfc8040.handlers;
 
 /**
  * Handler for handling object prepared by provider for Restconf services.
  *
- * @param <T>
- *             specific type go object for handling it
+ * @param <T> specific type go object for handling it
  */
 interface Handler<T> {
 
@@ -26,8 +24,9 @@ interface Handler<T> {
     /**
      * Update object.
      *
-     * @param object
-     *             new object to update old object
+     * @param object new object to update old object
      */
-    default void update(T object) {}
+    default void update(final T object) {
+
+    }
 }