JaroslavTulach closed pull request #497: Using Log.error(..., Error) instead of 
log.error(..., String, ...) wh…
URL: https://github.com/apache/incubator-netbeans/pull/497
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/lib.nbjavac/src/org/netbeans/lib/nbjavac/services/NBJavadocEnter.java 
b/lib.nbjavac/src/org/netbeans/lib/nbjavac/services/NBJavadocEnter.java
index fb92f4216..0f98e47bb 100644
--- a/lib.nbjavac/src/org/netbeans/lib/nbjavac/services/NBJavadocEnter.java
+++ b/lib.nbjavac/src/org/netbeans/lib/nbjavac/services/NBJavadocEnter.java
@@ -28,6 +28,7 @@
 import com.sun.tools.javac.tree.TreeInfo;
 import com.sun.tools.javac.util.Context;
 import com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition;
+import com.sun.tools.javac.util.JCDiagnostic.Error;
 import com.sun.tools.javadoc.main.JavadocEnter;
 import com.sun.tools.javadoc.main.Messager;
 import org.netbeans.lib.nbjavac.services.NBTreeMaker.IndexedClassDecl;
@@ -68,7 +69,7 @@ protected NBJavadocEnter(Context context) {
 
     @Override
     protected void duplicateClass(DiagnosticPosition pos, ClassSymbol c) {
-        messager.error(pos, "duplicate.class", c.fullname);
+        messager.error(pos, new Error("compiler", "duplicate.class", 
c.fullname));
     }
     
     @Override


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to