Enable checkstyle in yang-model-util
[yangtools.git] / yang / yang-model-util / src / main / java / org / opendaylight / yangtools / yang / model / util / type / AbstractDerivedType.java
index 90074c872e6a48b62c20c36a1a3bc1bca1010abf..c195878b710b892f918641e14c2ebac031daf5ff 100644 (file)
@@ -10,6 +10,7 @@ package org.opendaylight.yangtools.yang.model.util.type;
 import com.google.common.base.MoreObjects;
 import com.google.common.base.Preconditions;
 import java.util.Collection;
+import javax.annotation.Nonnull;
 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
 import org.opendaylight.yangtools.yang.model.api.Status;
 import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
@@ -24,7 +25,8 @@ abstract class AbstractDerivedType<T extends TypeDefinition<T>> extends Abstract
     private final String units;
 
     AbstractDerivedType(final T baseType, final SchemaPath path, final Object defaultValue, final String description,
-            final String reference, final Status status, final String units, final Collection<UnknownSchemaNode> unknownSchemNodes) {
+            final String reference, final Status status, final String units,
+            final Collection<UnknownSchemaNode> unknownSchemNodes) {
         super(path, unknownSchemNodes);
         this.baseType = Preconditions.checkNotNull(baseType);
         this.status = Preconditions.checkNotNull(status);
@@ -41,8 +43,6 @@ abstract class AbstractDerivedType<T extends TypeDefinition<T>> extends Abstract
 
     /**
      * Return the stored base type. Unlike {@link #getBaseType()}, this method returns the underlying restricted type.
-     *
-     * @return
      */
     final T baseType() {
         return baseType;
@@ -63,6 +63,7 @@ abstract class AbstractDerivedType<T extends TypeDefinition<T>> extends Abstract
         return reference;
     }
 
+    @Nonnull
     @Override
     public final Status getStatus() {
         return status;