8200128: Fix some "annoations" typos
authormartin
Thu, 05 Apr 2018 09:36:01 -0700
changeset 49530 8f2ceebdc673
parent 49529 c0bdb1b1ab4f
child 49531 e8ada9b2dd89
8200128: Fix some "annoations" typos Reviewed-by: alanb
src/java.base/share/classes/jdk/internal/vm/annotation/Stable.java
test/jdk/java/lang/Class/IsAnnotationType.java
test/jdk/java/lang/annotation/ClassFileGenerator.java
test/langtools/tools/javac/annotations/repeatingAnnotations/BasicRepeatingAnnotations.java
test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/ExceptionParameters.java
test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/MethodParameters.java
--- a/src/java.base/share/classes/jdk/internal/vm/annotation/Stable.java	Thu Apr 05 09:34:46 2018 -0700
+++ b/src/java.base/share/classes/jdk/internal/vm/annotation/Stable.java	Thu Apr 05 09:36:01 2018 -0700
@@ -81,7 +81,7 @@
  *
  * @implNote
  * This annotation only takes effect for fields of classes loaded by the boot
- * loader.  Annoations on fields of classes loaded outside of the boot loader
+ * loader.  Annotations on fields of classes loaded outside of the boot loader
  * are ignored.
  */
 @Target(ElementType.FIELD)
--- a/test/jdk/java/lang/Class/IsAnnotationType.java	Thu Apr 05 09:34:46 2018 -0700
+++ b/test/jdk/java/lang/Class/IsAnnotationType.java	Thu Apr 05 09:36:01 2018 -0700
@@ -49,7 +49,7 @@
         failures += test(String.class, false);
         failures += test(Enum.class, false);
         failures += test(java.math.RoundingMode.class, false);
-        // Classes in java.lang.annoation
+        // Classes in java.lang.annotation
         failures += test(Annotation.class, false);
         failures += test(Retention.class, true);
         failures += test(RetentionPolicy.class, false);
@@ -57,7 +57,7 @@
         failures += test(AnnotationPoseur.class, false);
 
         if (failures > 0) {
-            throw new RuntimeException("Unexepcted annotation " +
+            throw new RuntimeException("Unexpected annotation " +
                                        "status detected.");
         }
     }
--- a/test/jdk/java/lang/annotation/ClassFileGenerator.java	Thu Apr 05 09:34:46 2018 -0700
+++ b/test/jdk/java/lang/annotation/ClassFileGenerator.java	Thu Apr 05 09:36:01 2018 -0700
@@ -38,8 +38,8 @@
 public class ClassFileGenerator {
 
     public static void main(String... args) throws Exception {
-        classFileWriter("AnnotationWithVoidReturn.class", AnnoationWithVoidReturnDump.dump());
-        classFileWriter("AnnotationWithParameter.class", AnnoationWithParameterDump.dump());
+        classFileWriter("AnnotationWithVoidReturn.class", AnnotationWithVoidReturnDump.dump());
+        classFileWriter("AnnotationWithParameter.class", AnnotationWithParameterDump.dump());
         classFileWriter("AnnotationWithExtraInterface.class", AnnotationWithExtraInterfaceDump.dump());
         classFileWriter("AnnotationWithException.class", AnnotationWithExceptionDump.dump());
         classFileWriter("AnnotationWithHashCode.class", AnnotationWithHashCodeDump.dump());
@@ -65,7 +65,7 @@
 
     */
 
-    private static class AnnoationWithVoidReturnDump implements Opcodes {
+    private static class AnnotationWithVoidReturnDump implements Opcodes {
         public static byte[] dump() throws Exception {
             ClassWriter cw = new ClassWriter(0);
             MethodVisitor mv;
@@ -106,7 +106,7 @@
 
     */
 
-    private static class AnnoationWithParameterDump implements Opcodes {
+    private static class AnnotationWithParameterDump implements Opcodes {
         public static byte[] dump() throws Exception {
 
             ClassWriter cw = new ClassWriter(0);
--- a/test/langtools/tools/javac/annotations/repeatingAnnotations/BasicRepeatingAnnotations.java	Thu Apr 05 09:34:46 2018 -0700
+++ b/test/langtools/tools/javac/annotations/repeatingAnnotations/BasicRepeatingAnnotations.java	Thu Apr 05 09:36:01 2018 -0700
@@ -72,7 +72,7 @@
         }
         a = BasicNonRepeatingAnno.class.getAnnotation(Foo.class);
         if (a == null) {
-            throw new RuntimeException("Repeated annoation not directly present");
+            throw new RuntimeException("Repeated annotation not directly present");
         }
     }
 }
--- a/test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/ExceptionParameters.java	Thu Apr 05 09:34:46 2018 -0700
+++ b/test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/ExceptionParameters.java	Thu Apr 05 09:36:01 2018 -0700
@@ -84,7 +84,7 @@
     }
 
     @TADescription(annotation = "RTAs", type = EXCEPTION_PARAMETER, exceptionIndex = 0)
-    public String exceptionRepeatableAnnoation() {
+    public String exceptionRepeatableAnnotation() {
         return "void exception() { try { new Object(); } catch(@RTA @RTA Exception e) { } }";
     }
 
--- a/test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/MethodParameters.java	Thu Apr 05 09:34:46 2018 -0700
+++ b/test/langtools/tools/javac/annotations/typeAnnotations/referenceinfos/MethodParameters.java	Thu Apr 05 09:36:01 2018 -0700
@@ -223,7 +223,7 @@
             genericLocation = { 0, 0 }, paramIndex = 1)
     @TADescription(annotation = "RTCs", type = METHOD_FORMAL_PARAMETER,
             genericLocation = { 0, 0, 0, 0 }, paramIndex = 1)
-    public String methodParamAsVarargRepeatableAnnoattion() {
+    public String methodParamAsVarargRepeatableAnnotation() {
         return "void test(Object b, @RTC @RTC String @RTA @RTA [] @RTB @RTB ... a) { }";
     }