Fix checkstyle 87/84187/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 4 Sep 2019 06:59:26 +0000 (08:59 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 4 Sep 2019 09:19:25 +0000 (11:19 +0200)
This updates more checkstyle issues identified.

Change-Id: I0560418e647b4305f8bbd362254983456c2f2222
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
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 7c719cf3d16c7fd76ff7e3fbbd3113c2299e01d9..a87dd0648cd690938e38a56e9100292bff207d94 100644 (file)
@@ -289,7 +289,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) {
@@ -299,7 +301,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 79bfa12ab2ce161810992b550b72780abe8a6a74..f3a9eecfa253e3541a39ab9fa5e0deaecb75c884 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;
@@ -61,7 +60,9 @@ public final class WriterParameters {
         private boolean tagged;
         private String withDefault;
 
-        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) {
+
+    }
 }