Use E$$ to capture augmentation type
[mdsal.git] / binding / yang-binding / src / main / java / org / opendaylight / yangtools / yang / binding / Augmentable.java
index d65097556c73d9f36dc035a26d28f553ad9aa75b..5b8fee8cd8ce1510424eb4e7bdc6abee7dbdbf92 100644 (file)
@@ -26,9 +26,11 @@ public interface Augmentable<T> {
     /**
      * Returns instance of augmentation.
      *
-     * @param augmentationType
-     *            Type of augmentation to be returned.
+     * @param augmentationType Type of augmentation to be returned.
+     * @param <E$$> Type capture for augmentation type
      * @return instance of augmentation.
      */
-    <E extends Augmentation<T>> @Nullable E augmentation(Class<E> augmentationType);
+    // E$$ is an identifier which cannot be generated from models.
+    @SuppressWarnings("checkstyle:methodTypeParameterName")
+    <E$$ extends Augmentation<T>> @Nullable E$$ augmentation(Class<E$$> augmentationType);
 }