Cleanup checkstyle warnings and turn enforcement on in yang-data-impl
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / codec / EnumStringCodec.java
index 396823ca893ebca3297684571946199a7adc3863..9cc8f1593da06024c58d6b90c87cbb12c61fc4b3 100644 (file)
@@ -46,16 +46,16 @@ public final class EnumStringCodec extends TypeDefinitionAwareCodec<String, Enum
     }
 
     @Override
-    public String deserialize(final String s) {
+    public String deserialize(final String stringRepresentation) {
         if (values == null) {
-            return s;
+            return stringRepresentation;
         }
 
         // Lookup the serialized string in the values. Returned string is the interned instance, which we want
         // to use as the result.
-        final String result = values.get(s);
+        final String result = values.get(stringRepresentation);
         Preconditions.checkArgument(result != null, "Invalid value '%s' for enum type. Allowed values are: %s",
-                s, values.keySet());
+                stringRepresentation, values.keySet());
         return result;
     }