org.gradle.internal.exceptions.DiagnosticsVisitor



API Populatity

1 Client projects

Project: org.gradle

Project gradle/gradle in file ...nal.tasks.options.OptionNotationParserFactory.java (2015-02-01)
@@ -16,6 +16,7 @@
 
 package org.gradle.api.internal.tasks.options;
 
+import org.gradle.internal.exceptions.DiagnosticsVisitor;
 import org.gradle.internal.typeconversion.*;
 
 import java.util.ArrayList;
@@ -49,7 +50,8 @@ public class OptionNotationParserFactory {
             throw new UnsupportedOperationException();
         }
 
-        public void describe(Collection<String> candidateFormats) {
+        @Override
+        public void describe(DiagnosticsVisitor visitor) {
         }
 
         public void describeValues(Collection<String> collector) {
Project gradle/gradle in file ...ternal.typeconversion.CompositeNotationParser.java (2015-02-01)
@@ -16,6 +16,8 @@
 
 package org.gradle.internal.typeconversion;
 
+import org.gradle.internal.exceptions.DiagnosticsVisitor;
+
 import java.util.Collection;
 
 public class CompositeNotationParser<N, T> implements NotationParser<N, T> {
@@ -26,9 +28,10 @@ public class CompositeNotationParser<N, T> implements NotationParser<N, T> {
         this.delegates = delegates;
     }
 
-    public void describe(Collection<String> candidateFormats) {
+    @Override
+    public void describe(DiagnosticsVisitor visitor) {
         for (NotationParser<?, ?> delegate : delegates) {
-            delegate.describe(candidateFormats);
+            delegate.describe(visitor);
         }
     }
 
Project gradle/gradle in file ...conversion.EnumFromCharSequenceNotationParser.java (2015-02-01)
@@ -17,6 +17,7 @@
 package org.gradle.internal.typeconversion;
 
 import org.gradle.api.specs.Spec;
+import org.gradle.internal.exceptions.DiagnosticsVisitor;
 import org.gradle.util.CollectionUtils;
 import org.gradle.util.GUtil;
 
@@ -52,10 +53,11 @@ public class EnumFromCharSequenceNotationParser<T extends Enum> implements Value
         }
     }
 
-    public void describe(Collection<String> candidateFormats) {
+    @Override
+    public void describe(DiagnosticsVisitor visitor) {
         List<String> values = new ArrayList<String>();
         describeValues(values);
-        candidateFormats.add(String.format("One of the following values: %s", GUtil.toString(values)));
+        visitor.candidate(String.format("One of the following values: %s", GUtil.toString(values)));
     }
 
     public void describeValues(Collection<String> collector) {