Fix checkstyle 70/85270/2
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 14 Sep 2019 06:49:02 +0000 (08:49 +0200)
committerStephen Kitt <skitt@redhat.com>
Mon, 28 Oct 2019 10:49:46 +0000 (10:49 +0000)
This fixes up checkstyle violations.

Change-Id: I7ee4391b58eef76954157deb11b611a3837d0960
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 27d66a4602fca44386e6ab733b3d7748f9120b11)

library/impl/src/main/java/org/opendaylight/ovsdb/lib/message/TableUpdates.java
library/impl/src/main/java/org/opendaylight/ovsdb/lib/notation/OvsdbMap.java
library/impl/src/main/java/org/opendaylight/ovsdb/lib/notation/OvsdbSet.java
library/impl/src/main/java/org/opendaylight/ovsdb/lib/notation/Row.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/SouthboundMapper.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/TransactUtils.java

index 281af9994bc5105912bac97c8000fa201b98f987..90079a6ca714e7e224d9fc51a5e3fc4e602417af 100644 (file)
@@ -5,19 +5,18 @@
  * 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.ovsdb.lib.message;
 
 import java.util.HashMap;
 import java.util.Map;
 import org.opendaylight.ovsdb.lib.schema.TableSchema;
 
-
 public class TableUpdates extends Response {
-
     private final Map<String, TableUpdate> map = new HashMap<>();
 
-    public TableUpdates() {}
+    public TableUpdates() {
+
+    }
 
     public TableUpdates(Map<String, TableUpdate> map) {
         this.map.putAll(map);
index 7f7d17337a7c0632fdc6d706bd2b7cac12ed16ab..414f79a7719650718ab87a087b248430bf8f21a7 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.ovsdb.lib.notation;
 
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
@@ -19,10 +18,11 @@ import org.opendaylight.ovsdb.lib.notation.json.OvsdbMapSerializer;
 @JsonDeserialize(converter = Converter.MapConverter.class)
 @JsonSerialize(using = OvsdbMapSerializer.class)
 public class OvsdbMap<K, V> extends ForwardingMap<K, V> {
-
     private final Map<K, V> target = new HashMap<>();
 
-    public OvsdbMap() {}
+    public OvsdbMap() {
+
+    }
 
     public OvsdbMap(Map<K, V> value) {
         this.target.putAll(value);
index 797dc18243bb857a5abb7511e77e50588fec1aba..566a995cd1ce70b11888e5726ffc88139f0d3000 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.ovsdb.lib.notation;
 
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
@@ -22,7 +21,9 @@ public class OvsdbSet<T> extends ForwardingSet<T> {
 
     Set<T> target = new HashSet<>();
 
-    public OvsdbSet() {}
+    public OvsdbSet() {
+
+    }
 
     public OvsdbSet(Set<T> backing) {
         this.target = backing;
index 1e2eb46618b2e00779658e457c44569ad3d5773b..5ddb3a37fd037bbcd0a10ab53c0a5c5a8b8ef7f5 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.ovsdb.lib.notation;
 
 import com.fasterxml.jackson.annotation.JsonIgnore;
@@ -24,7 +23,9 @@ public class Row<E extends TableSchema<E>> {
     private TableSchema<E> tableSchema;
     protected Map<String, Column<E, ?>> columns = new HashMap<>();
 
-    public Row() {}
+    public Row() {
+
+    }
 
     public Row(TableSchema<E> tableSchema) {
         this.tableSchema = tableSchema;
index 7b0f86b0e39134b4874be83d61effcc76d2c5541..cfba85621a97d2964529c5f265557e85c62f55aa 100644 (file)
@@ -70,12 +70,13 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 public final class SouthboundMapper {
-
-    private SouthboundMapper() { }
-
     private static final Logger LOG = LoggerFactory.getLogger(SouthboundMapper.class);
     private static final String N_CONNECTIONS_STR = "n_connections";
 
+    private SouthboundMapper() {
+
+    }
+
     public static IpAddress createIpAddress(InetAddress address) {
         IpAddress ip = null;
         if (address instanceof Inet4Address) {
index 243e6ec59b7ccf407201c8c671e22ad366f972f2..c7c2e45557cb10fd4a7f1dbaa2b32e2fed95fd3e 100644 (file)
@@ -51,8 +51,9 @@ import org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier;
 // This class needs to be mocked
 @SuppressWarnings("checkstyle:FinalClass")
 public class TransactUtils {
+    private TransactUtils() {
 
-    private TransactUtils() { }
+    }
 
     private static <T extends DataObject> Predicate<DataObjectModification<T>> hasDataBefore() {
         return input -> input != null && input.getDataBefore() != null;