Fix a bunch of warnings
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / spi / meta / ModelActionBuilder.java
index 68e4a515de2faa0fb03782c3af8707a59186d846..d14f3c84434a5ef3d99690c4e56e91579fad28cf 100644 (file)
@@ -82,7 +82,7 @@ import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext.Mutable;
  */
 public interface ModelActionBuilder {
 
-    public interface Prerequisite<T> extends Supplier<T> {
+    interface Prerequisite<T> extends Supplier<T> {
 
         /**
          *
@@ -92,17 +92,16 @@ public interface ModelActionBuilder {
          *
          */
         @Override
-        public T get();
+        T get();
 
         boolean isDone();
-
     }
 
     /**
      * User-defined inference action.
      *
      */
-    public interface InferenceAction {
+    interface InferenceAction {
 
         /**
          * Invoked once all prerequisites were met and forward references
@@ -127,6 +126,7 @@ public interface ModelActionBuilder {
          * List of failed prerequisites should be used to select right message / error
          * type to debug problem in YANG sources.
          *
+         * @param failed collection of prerequisites which were not met
          * @throws InferenceException If inference action can not be processed.
          *      Note that this exception be used for user to debug YANG sources,
          *      so should provide helpful context to fix issue in sources.
@@ -150,7 +150,7 @@ public interface ModelActionBuilder {
 
     @Nonnull <T extends Mutable<?,?,?>> Prerequisite<T> mutatesEffectiveCtx(T stmt);
 
-    @Nonnull  <K,E extends EffectiveStatement<?,?>,N extends StatementNamespace<K, ?, ? extends E>> Prerequisite<Mutable<?,?,E>> mutatesEffectiveCtx(StmtContext<?,?,?> context,Class<N> namespace, K key);
+    @Nonnull  <K,E extends EffectiveStatement<?,?>, N extends IdentifierNamespace<K, ? extends StmtContext<?, ?, ?>>> Prerequisite<Mutable<?,?,E>> mutatesEffectiveCtx(StmtContext<?,?,?> context,Class<N> namespace, K key);
 
     void apply(InferenceAction action) throws InferenceException;
 
@@ -159,4 +159,4 @@ public interface ModelActionBuilder {
     @Nonnull <K, N extends StatementNamespace<K, ?, ? >> Prerequisite<StmtContext<?,?,?>> requiresCtx(StmtContext<?, ?, ?> context, Class<N> namespace, K key, ModelProcessingPhase phase);
 
     @Nonnull <C extends StmtContext.Mutable<?,?,?>, CT extends C> Prerequisite<C> mutatesCtx(CT root, ModelProcessingPhase phase);
-}
\ No newline at end of file
+}