Introduce top-level pom file.
[mdsal.git] / code-generator / binding-data-codec / src / main / java / org / opendaylight / yangtools / binding / data / codec / impl / ValueTypeCodec.java
index d8536ee667e9aae07184f25f0e74bf943e72dd31..d69970b93fad9af9fc3ce9e7545b31da730c5275 100644 (file)
@@ -63,14 +63,14 @@ abstract class ValueTypeCodec implements Codec<Object, Object> {
     public static final SchemaUnawareCodec EMPTY_CODEC = new SchemaUnawareCodec() {
 
         @Override
-        public Object serialize(Object arg0) {
+        public Object serialize(final Object arg0) {
             // Empty type has null value in NormalizedNode and Composite Node
             // representation
             return null;
         }
 
         @Override
-        public Object deserialize(Object arg0) {
+        public Object deserialize(final Object arg0) {
             /* Empty type has boolean.TRUE representation in Binding-aware world
             *  otherwise it is null / false.
             *  So when codec is triggered, empty leaf is present, that means we
@@ -83,7 +83,7 @@ abstract class ValueTypeCodec implements Codec<Object, Object> {
     private static final Callable<? extends SchemaUnawareCodec> EMPTY_LOADER = new Callable<SchemaUnawareCodec>() {
 
         @Override
-        public SchemaUnawareCodec call() throws Exception {
+        public SchemaUnawareCodec call() {
             return EMPTY_CODEC;
         }
     };
@@ -97,7 +97,7 @@ abstract class ValueTypeCodec implements Codec<Object, Object> {
         while (rootType.getBaseType() != null) {
             rootType = rootType.getBaseType();
         }
-        if(rootType instanceof EmptyTypeDefinition) {
+        if (rootType instanceof EmptyTypeDefinition) {
             return EMPTY_CODEC;
         }
         return NOOP_CODEC;