Revision should be Immutable 82/81582/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 11 Apr 2019 19:42:21 +0000 (21:42 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 11 Apr 2019 19:42:21 +0000 (21:42 +0200)
This class has only a single member, which is immutable and is final,
which means it is Immutable. Reflect that in the class hierarchy.

Change-Id: I1cc8866e5d4b3344361581bf0037971855bd2f5d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Revision.java

index fcc9019fd3c146bce676159c26f7c48a86651f96..a4788d3d7f1c407a27bd1953fc1268c64fe232df 100644 (file)
@@ -21,6 +21,7 @@ import java.util.regex.Pattern;
 import org.checkerframework.checker.regex.qual.Regex;
 import org.eclipse.jdt.annotation.NonNull;
 import org.eclipse.jdt.annotation.Nullable;
+import org.opendaylight.yangtools.concepts.Immutable;
 
 /**
  * Dedicated object identifying a YANG module revision.
@@ -37,7 +38,7 @@ import org.eclipse.jdt.annotation.Nullable;
  *
  * @author Robert Varga
  */
-public final class Revision implements Comparable<Revision>, Serializable {
+public final class Revision implements Comparable<Revision>, Immutable, Serializable {
     // Note: since we are using writeReplace() this version is not significant.
     private static final long serialVersionUID = 1L;