langtools/src/jdk.compiler/share/classes/com/sun/tools/javah/Util.java
changeset 26266 2d24bda701dc
parent 25874 83c19f00452c
child 34752 9c262a013456
--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javah/Util.java	Tue Aug 26 12:45:28 2014 +0100
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javah/Util.java	Wed Aug 27 07:44:00 2014 +0200
@@ -36,6 +36,9 @@
 import javax.tools.DiagnosticListener;
 import javax.tools.JavaFileObject;
 
+import com.sun.tools.javac.util.DefinedBy;
+import com.sun.tools.javac.util.DefinedBy.Api;
+
 /**
  * Messages, verbose and error handling support.
  *
@@ -152,32 +155,41 @@
     private Diagnostic<JavaFileObject> createDiagnostic(
             final Diagnostic.Kind kind, final String code, final Object... args) {
         return new Diagnostic<JavaFileObject>() {
+            @DefinedBy(Api.COMPILER)
             public String getCode() {
                 return code;
             }
+            @DefinedBy(Api.COMPILER)
             public long getColumnNumber() {
                 return Diagnostic.NOPOS;
             }
+            @DefinedBy(Api.COMPILER)
             public long getEndPosition() {
                 return Diagnostic.NOPOS;
             }
+            @DefinedBy(Api.COMPILER)
             public Kind getKind() {
                 return kind;
             }
+            @DefinedBy(Api.COMPILER)
             public long getLineNumber() {
                 return Diagnostic.NOPOS;
             }
+            @DefinedBy(Api.COMPILER)
             public String getMessage(Locale locale) {
                 if (code.length() == 0)
                     return (String) args[0];
                 return getText(code, args); // FIXME locale
             }
+            @DefinedBy(Api.COMPILER)
             public long getPosition() {
                 return Diagnostic.NOPOS;
             }
+            @DefinedBy(Api.COMPILER)
             public JavaFileObject getSource() {
                 return null;
             }
+            @DefinedBy(Api.COMPILER)
             public long getStartPosition() {
                 return Diagnostic.NOPOS;
             }