--- old/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Annotate.java 2019-12-20 15:40:56.000000000 +0000 +++ new/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Annotate.java 2019-12-20 15:40:56.000000000 +0000 @@ -424,7 +424,7 @@ public Attribute.Compound attributeAnnotation(JCAnnotation tree, Type expectedAnnotationType, Env env) { - // The attribute might have been entered if it is Target or Repetable + // The attribute might have been entered if it is Target or Repeatable // Because TreeCopier does not copy type, redo this if type is null if (tree.attribute != null && tree.type != null) return tree.attribute; @@ -445,7 +445,7 @@ public Attribute.TypeCompound attributeTypeAnnotation(JCAnnotation a, Type expectedAnnotationType, Env env) { - // The attribute might have been entered if it is Target or Repetable + // The attribute might have been entered if it is Target or Repeatable // Because TreeCopier does not copy type, redo this if type is null if (a.attribute == null || a.type == null || !(a.attribute instanceof Attribute.TypeCompound)) { // Create a new TypeCompound @@ -540,7 +540,7 @@ private Attribute attributeAnnotationValue(Type expectedElementType, JCExpression tree, Env env) { - //first, try completing the symbol for the annotation value - if acompletion + //first, try completing the symbol for the annotation value - if a completion //error is thrown, we should recover gracefully, and display an //ordinary resolution diagnostic. try { @@ -1127,7 +1127,7 @@ @Override public void visitBindingPattern(JCTree.JCBindingPattern tree) { - //type binding pattern's type will be annotated separatelly, avoid + //type binding pattern's type will be annotated separately, avoid //adding its annotations into the owning method here (would clash //with repeatable annotations). } @@ -1164,7 +1164,7 @@ }; /* Last stage completer to enter just enough annotations to have a prototype annotation type. - * This currently means entering @Target and @Repetable. + * This currently means entering @Target and @Repeatable. */ public AnnotationTypeCompleter annotationTypeSourceCompleter() { return theSourceCompleter;