Fix eclipse/checkstyle warnings
[yangtools.git] / common / concepts / src / main / java / org / opendaylight / yangtools / concepts / Identifiable.java
index b2c3c21f80d3a19c04cc5db2f5ecaa69ee2b819e..2e1d5c1e89d8b738a62dc6bb2ecae41fd5034689 100644 (file)
@@ -7,7 +7,13 @@
  */
 package org.opendaylight.yangtools.concepts;
 
+import javax.annotation.Nonnull;
+
 public interface Identifiable<T> {
-    
-    T getIdentifier();
+    /**
+     * Return this objects Identifier.
+     *
+     * @return Object's identifier, must not be null.
+     */
+    @Nonnull T getIdentifier();
 }