Mechanical code cleanup (sal-common-impl) 91/46091/3
authorStephen Kitt <skitt@redhat.com>
Thu, 22 Sep 2016 16:32:09 +0000 (18:32 +0200)
committerTom Pantelis <tpanteli@brocade.com>
Fri, 23 Sep 2016 18:45:05 +0000 (18:45 +0000)
* Remove unnecessary type specifiers (use Java 7 <>)
* Remove unnecessary "extends Object" declarations
* Remove unnecessary semi-colons
* Merge identical catch blocks
* Remove redundant modifiers:
  - enum constructors are private by default
  - interface properties are public static final by default
  - interface methods are public abstract by default
  - interfaces are abstract by default
  - inner interfaces are static by default
  - inner classes in interfaces are public static by default

Change-Id: I94484029e3967dfb16343e61432f0945659c14b3
Signed-off-by: Stephen Kitt <skitt@redhat.com>
opendaylight/md-sal/sal-common-impl/src/main/java/org/opendaylight/controller/md/sal/common/impl/util/compat/DataNormalizationOperation.java
opendaylight/md-sal/sal-common-impl/src/main/java/org/opendaylight/controller/md/sal/common/impl/util/compat/DataSchemaContainerProxy.java

index d75f438..bbe3660 100644 (file)
@@ -53,7 +53,7 @@ public abstract class DataNormalizationOperation<T extends PathArgument> impleme
     @Override
     public T getIdentifier() {
         return identifier;
-    };
+    }
 
     protected DataNormalizationOperation(final T identifier, final SchemaNode schema) {
         super();
index 0c79e19..4c24c8a 100644 (file)
@@ -26,7 +26,7 @@ class DataSchemaContainerProxy implements DataNodeContainer {
 
     public DataSchemaContainerProxy(final Set<DataSchemaNode> realChildSchema) {
         realChildSchemas = realChildSchema;
-        mappedChildSchemas = new HashMap<QName, DataSchemaNode>();
+        mappedChildSchemas = new HashMap<>();
         for(DataSchemaNode schema : realChildSchemas) {
             mappedChildSchemas.put(schema.getQName(),schema);
         }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.