Bump odlparent to 6.0.4
[yangtools.git] / yang / yang-model-util / src / main / java / org / opendaylight / yangtools / yang / model / util / BaseTypes.java
index f0b1db4fbe3d2cf2e5a14ec618f61a49021e853d..1d9603867099afd1d061606adc0665ec2e26729f 100644 (file)
@@ -9,34 +9,18 @@ package org.opendaylight.yangtools.yang.model.util;
 
 import com.google.common.base.Strings;
 import com.google.common.collect.ImmutableSet;
-import java.net.URI;
-import java.util.Set;
 import org.opendaylight.yangtools.yang.common.QName;
-import org.opendaylight.yangtools.yang.common.QNameModule;
 import org.opendaylight.yangtools.yang.common.YangConstants;
 import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
 
 /**
- * Utility methods and constants to work with built-in YANG types
- *
- *
+ * Utility methods and constants to work with built-in YANG types.
  */
 public final class BaseTypes {
 
     private BaseTypes() {
     }
 
-    /**
-     * @deprecated Use {@link YangConstants#RFC6020_YANG_NAMESPACE} instead. To be removed in Boron release.
-     */
-    @Deprecated
-    public static final URI BASE_TYPES_NAMESPACE = YangConstants.RFC6020_YANG_NAMESPACE;
-    /**
-     * @deprecated Use {@link YangConstants#RFC6020_YANG_MODULE} instead. To be removed in Boron release.
-     */
-    @Deprecated
-    public static final QNameModule BASE_TYPES_MODULE = YangConstants.RFC6020_YANG_MODULE;
-
     public static final QName BINARY_QNAME = constructQName("binary");
     public static final QName BITS_QNAME = constructQName("bits");
     public static final QName BOOLEAN_QNAME = constructQName("boolean");
@@ -57,7 +41,7 @@ public final class BaseTypes {
     public static final QName UINT64_QNAME = constructQName("uint64");
     public static final QName UNION_QNAME = constructQName("union");
 
-    private static final Set<QName> BUILT_IN_TYPES = ImmutableSet.<QName>builder()
+    private static final ImmutableSet<QName> BUILT_IN_TYPES = ImmutableSet.<QName>builder()
             .add(BINARY_QNAME)
             .add(BITS_QNAME)
             .add(BOOLEAN_QNAME)
@@ -95,9 +79,10 @@ public final class BaseTypes {
      * Returns true if supplied type is representation of built-in YANG type as
      * per RFC 6020.
      *
+     * <p>
      * See package documentation for description of base types.
      *
-     * @param type
+     * @param type A type name
      * @return true if type is built-in YANG Types.
      */
     public static boolean isYangBuildInType(final String type) {
@@ -109,9 +94,10 @@ public final class BaseTypes {
      * Returns true if supplied type is representation of built-in YANG type as
      * per RFC 6020.
      *
+     * <p>
      * See package documentation for description of base types.
      *
-     * @param type
+     * @param type Type definition
      * @return true if type is built-in YANG Types.
      */
     public static boolean isYangBuildInType(final TypeDefinition<?> type) {