config-persister-impl: final parameters
[controller.git] / opendaylight / config / config-persister-impl / src / test / java / org / opendaylight / controller / config / persist / impl / CapabilityStrippingConfigSnapshotHolderTest.java
index ad625bd463d55cbd13d190da30a55a218fa4c210..2a20939ba7891d662c35f1d81fccd06d184489e9 100644 (file)
@@ -9,10 +9,10 @@ package org.opendaylight.controller.config.persist.impl;
 
 import static org.junit.Assert.assertEquals;
 
-import com.google.common.base.Charsets;
 import com.google.common.collect.Sets;
 import com.google.common.io.Resources;
 import java.io.IOException;
+import java.nio.charset.StandardCharsets;
 import java.util.HashSet;
 import java.util.Set;
 import org.junit.Test;
@@ -36,12 +36,12 @@ public class CapabilityStrippingConfigSnapshotHolderTest {
         assertEquals(obsoleteCapabilities, tested.getObsoleteCapabilities());
     }
 
-    private Set<String> readLines(String fileName) throws IOException {
-        return new HashSet<>(Resources.readLines(getClass().getResource(fileName), Charsets.UTF_8));
+    private Set<String> readLines(final String fileName) throws IOException {
+        return new HashSet<>(Resources.readLines(getClass().getResource(fileName), StandardCharsets.UTF_8));
     }
 
-    private String readToString(String fileName) throws IOException {
-        return Resources.toString(getClass().getResource(fileName), Charsets.UTF_8);
+    private String readToString(final String fileName) throws IOException {
+        return Resources.toString(getClass().getResource(fileName), StandardCharsets.UTF_8);
     }
 
 }