langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/util/SharedNameTable.java
changeset 26266 2d24bda701dc
parent 25874 83c19f00452c
--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/util/SharedNameTable.java	Tue Aug 26 12:45:28 2014 +0100
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/util/SharedNameTable.java	Wed Aug 27 07:44:00 2014 +0200
@@ -27,6 +27,8 @@
 
 import java.lang.ref.SoftReference;
 
+import com.sun.tools.javac.util.DefinedBy.Api;
+
 /**
  * Implementation of Name.Table that stores all names in a single shared
  * byte array, expanding it as needed. This avoids the overhead incurred
@@ -192,12 +194,14 @@
 
         /** Return the hash value of this name.
          */
+        @DefinedBy(Api.LANGUAGE_MODEL)
         public int hashCode() {
             return index;
         }
 
         /** Is this name equal to other?
          */
+        @DefinedBy(Api.LANGUAGE_MODEL)
         public boolean equals(Object other) {
             if (other instanceof Name)
                 return