Fix checkstyle 73/84673/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 4 Sep 2019 06:59:26 +0000 (08:59 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 23 Sep 2019 15:58:04 +0000 (17:58 +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/netconf-util/src/main/java/org/opendaylight/netconf/util/NetconfUtil.java
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 217f106df265d226478b062ce4a87d80b96d5314..c77679f04c06817b4dd9fee01078eb0b54a47d13 100644 (file)
@@ -56,7 +56,9 @@ public final class NetconfUtil {
         XML_FACTORY.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES, false);
     }
 
-    private NetconfUtil() {}
+    private NetconfUtil() {
+
+    }
 
     public static Document checkIsMessageOk(final Document response) throws DocumentedException {
         XmlElement element = XmlElement.fromDomDocument(response);
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 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) {
+
+    }
 }