Do not declare Exception as thrown
authorRobert Varga <rovarga@cisco.com>
Wed, 25 Feb 2015 16:28:42 +0000 (17:28 +0100)
committerRobert Varga <rovarga@cisco.com>
Thu, 26 Feb 2015 06:17:14 +0000 (07:17 +0100)
This Callable never throws, so do not declare the exception, fixing a
sonar warning.

Change-Id: Ia0f847dd31ebc09d91993ded5e5bb2fc6486b7d6
Signed-off-by: Robert Varga <rovarga@cisco.com>
code-generator/binding-data-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/impl/ValueTypeCodec.java

index d327a468d54a1e40c9e1216f8be175cd460a2264..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;
         }
     };