config-persister-api: final parameters 62/56962/2
authorStephen Kitt <skitt@redhat.com>
Fri, 12 May 2017 11:18:32 +0000 (13:18 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Mon, 15 May 2017 11:53:28 +0000 (11:53 +0000)
This automatically-generated patch flags all appropriate parameters as
final (including caught exceptions).

Change-Id: If038e69c48e9b817f80286a70db593d73bc62169
Signed-off-by: Stephen Kitt <skitt@redhat.com>
opendaylight/config/config-persister-api/src/main/java/org/opendaylight/controller/config/persist/api/ConfigSnapshotHolderImpl.java
opendaylight/config/config-persister-api/src/test/java/org/opendaylight/controller/config/persist/test/PropertiesProviderTest.java

index d25e70d..0bfb975 100644 (file)
@@ -15,7 +15,7 @@ public class ConfigSnapshotHolderImpl implements ConfigSnapshotHolder {
     private final SortedSet<String> caps;
     private final String fileName;
 
     private final SortedSet<String> caps;
     private final String fileName;
 
-    public ConfigSnapshotHolderImpl(String configSnapshot, SortedSet<String> capabilities, String fileName) {
+    public ConfigSnapshotHolderImpl(final String configSnapshot, final SortedSet<String> capabilities, final String fileName) {
         this.snapshot = configSnapshot;
         this.caps = capabilities;
         this.fileName = fileName;
         this.snapshot = configSnapshot;
         this.caps = capabilities;
         this.fileName = fileName;
index 2c60310..d47cdbd 100644 (file)
@@ -14,16 +14,16 @@ import org.opendaylight.controller.config.persist.api.PropertiesProvider;
 public class PropertiesProviderTest implements PropertiesProvider {
     private final Map<String,String> properties = new HashMap<>();
 
 public class PropertiesProviderTest implements PropertiesProvider {
     private final Map<String,String> properties = new HashMap<>();
 
-    public void addProperty(String key,String value){
+    public void addProperty(final String key, final String value){
         properties.put(key,value);
     }
     @Override
         properties.put(key,value);
     }
     @Override
-    public String getProperty(String key) {
+    public String getProperty(final String key) {
         return properties.get(key);
     }
 
     @Override
         return properties.get(key);
     }
 
     @Override
-    public String getFullKeyForReporting(String key) {
+    public String getFullKeyForReporting(final String key) {
         return null;
     }
 
         return null;
     }
 
@@ -33,7 +33,7 @@ public class PropertiesProviderTest implements PropertiesProvider {
     }
 
     @Override
     }
 
     @Override
-    public String getPropertyWithoutPrefix(String fullKey) {
+    public String getPropertyWithoutPrefix(final String fullKey) {
         return null;
     }
 }
         return null;
     }
 }

©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.