@@ -3982,11 +3982,11 @@ public JCTree.JCCompilationUnit parseCompilationUnit() {
3982
3982
defs .appendList (semiList .toList ());
3983
3983
boolean isTopLevelMethodOrField = false ;
3984
3984
3985
- // Do to a significant number of existing negative tests
3985
+ // Due to a significant number of existing negative tests
3986
3986
// this code speculatively tests to see if a top level method
3987
3987
// or field can parse. If the method or field can parse then
3988
3988
// it is parsed. Otherwise, parsing continues as though
3989
- // implicit classes did not exist and error reporting
3989
+ // implicitly declared classes did not exist and error reporting
3990
3990
// is the same as in the past.
3991
3991
if (Feature .IMPLICIT_CLASSES .allowedInSource (source ) && !isDeclaration ()) {
3992
3992
final JCModifiers finalMods = mods ;
@@ -4014,7 +4014,7 @@ public JCTree.JCCompilationUnit parseCompilationUnit() {
4014
4014
firstTypeDecl = false ;
4015
4015
}
4016
4016
}
4017
- List <JCTree > topLevelDefs = isImplicitClass ? constructImplictClass (defs .toList ()) : defs .toList ();
4017
+ List <JCTree > topLevelDefs = isImplicitClass ? constructImplicitClass (defs .toList ()) : defs .toList ();
4018
4018
JCTree .JCCompilationUnit toplevel = F .at (firstToken .pos ).TopLevel (topLevelDefs );
4019
4019
if (!consumedToplevelDoc )
4020
4020
attach (toplevel , firstToken .docComment ());
@@ -4029,8 +4029,8 @@ public JCTree.JCCompilationUnit parseCompilationUnit() {
4029
4029
return toplevel ;
4030
4030
}
4031
4031
4032
- // Restructure top level to be an implicit class.
4033
- private List <JCTree > constructImplictClass (List <JCTree > origDefs ) {
4032
+ // Restructure top level to be an implicitly declared class.
4033
+ private List <JCTree > constructImplicitClass (List <JCTree > origDefs ) {
4034
4034
ListBuffer <JCTree > topDefs = new ListBuffer <>();
4035
4035
ListBuffer <JCTree > defs = new ListBuffer <>();
4036
4036
0 commit comments