BUG-4638: add utility check methods for base types
[yangtools.git] / yang / yang-model-util / src / main / java / org / opendaylight / yangtools / yang / model / util / UnionType.java
index ec8edd3411763f3f14ac18885fdd70aced4c8fab..a27fc024efca760a2cf23c567fd93271f95821a5 100644 (file)
@@ -9,10 +9,8 @@ package org.opendaylight.yangtools.yang.model.util;
 
 import com.google.common.base.Preconditions;
 import com.google.common.collect.ImmutableList;
-
 import java.util.Collections;
 import java.util.List;
-
 import org.opendaylight.yangtools.yang.common.QName;
 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
 import org.opendaylight.yangtools.yang.model.api.Status;
@@ -26,8 +24,7 @@ public final class UnionType implements UnionTypeDefinition {
     private static final String REFERENCE = "https://tools.ietf.org/html/rfc6020#section-9.12";
     private final List<TypeDefinition<?>> types;
 
-    @Deprecated
-    public UnionType(final List<TypeDefinition<?>> types) {
+    private UnionType(final List<TypeDefinition<?>> types) {
         Preconditions.checkNotNull(types,"When the type is 'union', the 'type' statement MUST be present.");
         this.types = ImmutableList.copyOf(types);
     }