sonar: Move this trailing comment on the previous empty line. 32/46632/1
authorIsaku Yamahata <isaku.yamahata@intel.com>
Thu, 6 Oct 2016 18:00:27 +0000 (11:00 -0700)
committerIsaku Yamahata <isaku.yamahata@intel.com>
Thu, 6 Oct 2016 18:00:27 +0000 (11:00 -0700)
remove trailing comment by moving it on the previous empty line.

Change-Id: I72d7e93dd4d60c4773b437c36368d3297e8154d4
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
transcriber/src/main/java/org/opendaylight/neutron/transcriber/AbstractNeutronInterface.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronPortInterface.java

index aa09d9b91dba30171df2ff8fd4f261a0f8e70a60..7ec82cbb370a94b27c7956dbabf6eac844c3a1db 100644 (file)
@@ -251,7 +251,8 @@ public abstract class AbstractNeutronInterface<T extends DataObject & Identifiab
         final InstanceIdentifier<T> iid = createInstanceIdentifier(item);
         tx.put(LogicalDatastoreType.CONFIGURATION, iid, item, true);
         final CheckedFuture<Void, TransactionCommitFailedException> future = tx.submit();
-        future.get(); // Check if it's successfuly committed, otherwise exception will be thrown.
+        // Check if it's successfuly committed, otherwise exception will be thrown.
+        future.get();
     }
 
     protected boolean updateMd(S neutronObject) {
@@ -279,7 +280,8 @@ public abstract class AbstractNeutronInterface<T extends DataObject & Identifiab
         final InstanceIdentifier<T> iid = createInstanceIdentifier(item);
         tx.delete(LogicalDatastoreType.CONFIGURATION, iid);
         final CheckedFuture<Void, TransactionCommitFailedException> future = tx.submit();
-        future.get(); // Check if it's successfuly committed, otherwise exception will be thrown.
+        // Check if it's successfuly committed, otherwise exception will be thrown.
+        future.get();
     }
 
     protected boolean removeMd(T item) {
index 97c5e4198ed535b7c8ab5aee8efd48494e79bf14..eb464505c9864636ebedbbb3f7d4def35c0d3006 100644 (file)
@@ -215,7 +215,8 @@ public final class NeutronPortInterface extends AbstractNeutronInterface<Port, P
                 extraDHCPOptsBuilder.setOptValue(extraDHCPOption.getValue());
                 Integer ipVersion = extraDHCPOption.getIpVersion();
                 if (ipVersion == null) {
-                    ipVersion = 4; // default as v4 for neutron api evolves
+                    // default as v4 for neutron api evolves
+                    ipVersion = 4;
                 }
                 extraDHCPOptsBuilder.setIpVersion((Class<? extends IpVersionBase>) mapper.get(ipVersion));
                 listExtraDHCPOptions.add(extraDHCPOptsBuilder.build());