Uint16 shared instance should be final 02/10502/1
authorRobert Varga <rovarga@cisco.com>
Fri, 29 Aug 2014 21:06:21 +0000 (23:06 +0200)
committerRobert Varga <rovarga@cisco.com>
Fri, 29 Aug 2014 21:35:41 +0000 (23:35 +0200)
Reported by sonar.

Change-Id: I3b33c1d65db865c3bfebf4e455044b3d5a941397
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/Uint16.java

index d557449220a153d725772905490748b080c8fe35..5c233df5ad9c761a1b344ebca0c38e0a006e572a 100644 (file)
@@ -19,7 +19,7 @@ public final class Uint16 extends AbstractUnsignedInteger implements Immutable {
     public static final int MAX_VALUE = 65535;
     private static final String DESCRIPTION = "uint16 represents integer values between 0 and 65535, inclusively.";
 
-    private static Uint16 INSTANCE = new Uint16();
+    private static final Uint16 INSTANCE = new Uint16();
 
     private Uint16() {
         super(BaseTypes.UINT16_QNAME, DESCRIPTION, MAX_VALUE, "");