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 d25e70d2034e37be85bde83540fe92274294ef67..0bfb975dec0750de332deaa17d0eb14de1baafc5 100644 (file)
@@ -15,7 +15,7 @@ public class ConfigSnapshotHolderImpl implements ConfigSnapshotHolder {
     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;
index 2c60310e8a0d5d5063cfcc56999f174d1d8aebba..d47cdbd7b507606db61182f4e62817e7e786931a 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 void addProperty(String key,String value){
+    public void addProperty(final String key, final String value){
         properties.put(key,value);
     }
     @Override
-    public String getProperty(String key) {
+    public String getProperty(final String key) {
         return properties.get(key);
     }
 
     @Override
-    public String getFullKeyForReporting(String key) {
+    public String getFullKeyForReporting(final String key) {
         return null;
     }
 
@@ -33,7 +33,7 @@ public class PropertiesProviderTest implements PropertiesProvider {
     }
 
     @Override
-    public String getPropertyWithoutPrefix(String fullKey) {
+    public String getPropertyWithoutPrefix(final String fullKey) {
         return null;
     }
 }