Promote dedicated YANG types 94/106294/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 30 May 2023 20:44:03 +0000 (22:44 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 30 May 2023 20:44:03 +0000 (22:44 +0200)
Uint{8,16,32,64} and Decimal64 are widely used an work, they are no
longer @Beta.

Change-Id: Ifbd67dfa9a017ffd7255046f32e22c6ef859b3b4
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Decimal64.java
common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Empty.java
common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Uint16.java
common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Uint32.java
common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Uint64.java
common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Uint8.java
common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/UintConversions.java

index 6cad3501d38107403299b71366fd3a76b961f4de..a95738664c1a9ffdb390db35fb7a71a48108707b 100644 (file)
@@ -11,7 +11,6 @@ import static com.google.common.base.Preconditions.checkArgument;
 import static com.google.common.base.Verify.verify;
 import static java.util.Objects.requireNonNull;
 
-import com.google.common.annotations.Beta;
 import com.google.common.annotations.VisibleForTesting;
 import java.io.Serial;
 import java.math.BigDecimal;
@@ -24,10 +23,7 @@ import org.opendaylight.yangtools.concepts.Either;
 /**
  * Dedicated type for YANG's 'type decimal64' type. This class is similar to {@link BigDecimal}, but provides more
  * efficient storage, as it has fixed precision.
- *
- * @author Robert Varga
  */
-@Beta
 @NonNullByDefault
 public class Decimal64 extends Number implements CanonicalValue<Decimal64> {
     public static final class Support extends AbstractCanonicalValueSupport<Decimal64> {
index dc26162db44a1141a9e52da7117d56e7c050fe5b..cadea58ba1692ac3761cbbd87ef43a00a53356e3 100644 (file)
@@ -13,9 +13,7 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
 import org.opendaylight.yangtools.concepts.Immutable;
 
 /**
- * Dedicated singleton type for YANG's 'type empty' value.
- *
- * @author Robert Varga
+ * Dedicated singleton type for YANG's {@code type empty} value.
  */
 @NonNullByDefault
 public final class Empty implements Immutable, Serializable {
index 2c062d72880b6ec05f80996a3cbd3b283e4bea9d..7fecb27ae8a744446a9aecda8a0e9931829e70a9 100644 (file)
@@ -9,7 +9,6 @@ package org.opendaylight.yangtools.yang.common;
 
 import static java.util.Objects.requireNonNull;
 
-import com.google.common.annotations.Beta;
 import com.google.common.collect.Interner;
 import com.google.common.collect.Interners;
 import java.io.Serial;
@@ -19,11 +18,8 @@ import org.eclipse.jdt.annotation.Nullable;
 import org.opendaylight.yangtools.concepts.Either;
 
 /**
- * Dedicated type for YANG's 'type uint16' type.
- *
- * @author Robert Varga
+ * Dedicated type for YANG's {@code type uint16} type.
  */
-@Beta
 @NonNullByDefault
 public class Uint16 extends Number implements CanonicalValue<Uint16> {
     public static final class Support extends AbstractCanonicalValueSupport<Uint16> {
index d7bd60b9ae8f7ccacf6baeca3776f79b24f2c29f..d01a01196f5f9687243351620f24da137c6b61c6 100644 (file)
@@ -9,7 +9,6 @@ package org.opendaylight.yangtools.yang.common;
 
 import static java.util.Objects.requireNonNull;
 
-import com.google.common.annotations.Beta;
 import com.google.common.collect.Interner;
 import com.google.common.collect.Interners;
 import com.google.common.primitives.UnsignedInteger;
@@ -20,11 +19,8 @@ import org.eclipse.jdt.annotation.Nullable;
 import org.opendaylight.yangtools.concepts.Either;
 
 /**
- * Dedicated type for YANG's 'type uint32' type.
- *
- * @author Robert Varga
+ * Dedicated type for YANG's {@code type uint32} type.
  */
-@Beta
 @NonNullByDefault
 public class Uint32 extends Number implements CanonicalValue<Uint32> {
     public static final class Support extends AbstractCanonicalValueSupport<Uint32> {
index 038c5cb795fb2c0dab3f11dacf134b02352b1d4e..7b170d57273ef57a5938948bb0b5ff05d15abfb4 100644 (file)
@@ -9,7 +9,6 @@ package org.opendaylight.yangtools.yang.common;
 
 import static java.util.Objects.requireNonNull;
 
-import com.google.common.annotations.Beta;
 import com.google.common.collect.Interner;
 import com.google.common.collect.Interners;
 import com.google.common.primitives.UnsignedLong;
@@ -21,11 +20,8 @@ import org.eclipse.jdt.annotation.Nullable;
 import org.opendaylight.yangtools.concepts.Either;
 
 /**
- * Dedicated type for YANG's 'type uint64' type.
- *
- * @author Robert Varga
+ * Dedicated type for YANG's {@code type uint64} type.
  */
-@Beta
 @NonNullByDefault
 public class Uint64 extends Number implements CanonicalValue<Uint64> {
     public static final class Support extends AbstractCanonicalValueSupport<Uint64> {
index ff87f0d2eeccfa75ecb91dde8aa764ef6a22fb87..282d796f89169ce20753d1fd6730b9e4cdc5832e 100644 (file)
@@ -9,7 +9,6 @@ package org.opendaylight.yangtools.yang.common;
 
 import static java.util.Objects.requireNonNull;
 
-import com.google.common.annotations.Beta;
 import java.io.Serial;
 import org.eclipse.jdt.annotation.NonNull;
 import org.eclipse.jdt.annotation.NonNullByDefault;
@@ -17,11 +16,8 @@ import org.eclipse.jdt.annotation.Nullable;
 import org.opendaylight.yangtools.concepts.Either;
 
 /**
- * Dedicated type for YANG's 'type uint8' type.
- *
- * @author Robert Varga
+ * Dedicated type for YANG's {@code type uint8} type.
  */
-@Beta
 @NonNullByDefault
 public class Uint8 extends Number implements CanonicalValue<Uint8> {
     public static final class Support extends AbstractCanonicalValueSupport<Uint8> {
index 7b8c22303077091ac2287205314257e7c313f8e3..02c918af09b08ee13b22a05614ff762e3e5e7305 100644 (file)
@@ -7,7 +7,6 @@
  */
 package org.opendaylight.yangtools.yang.common;
 
-import com.google.common.annotations.Beta;
 import com.google.common.primitives.UnsignedInteger;
 import com.google.common.primitives.UnsignedLong;
 import java.math.BigInteger;
@@ -26,10 +25,7 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
  *     Uint32 one = fromJava(32L);
  *   </code>
  * </pre>
- *
- * @author Robert Varga
  */
-@Beta
 @NonNullByDefault
 public final class UintConversions {
     private UintConversions() {