mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-30 15:22:41 +00:00
8286573: Remove the unnecessary method Attr#attribTopLevel and its usage
Reviewed-by: vromero
This commit is contained in:
parent
dea6e886af
commit
36bdd25159
@ -5155,9 +5155,6 @@ public class Attr extends JCTree.Visitor {
|
||||
case MODULEDEF:
|
||||
attribModule(env.tree.pos(), ((JCModuleDecl)env.tree).sym);
|
||||
break;
|
||||
case TOPLEVEL:
|
||||
attribTopLevel(env);
|
||||
break;
|
||||
case PACKAGEDEF:
|
||||
attribPackage(env.tree.pos(), ((JCPackageDecl) env.tree).packge);
|
||||
break;
|
||||
@ -5166,19 +5163,6 @@ public class Attr extends JCTree.Visitor {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Attribute a top level tree. These trees are encountered when the
|
||||
* package declaration has annotations.
|
||||
*/
|
||||
public void attribTopLevel(Env<AttrContext> env) {
|
||||
JCCompilationUnit toplevel = env.toplevel;
|
||||
try {
|
||||
annotate.flush();
|
||||
} catch (CompletionFailure ex) {
|
||||
chk.completionError(toplevel.pos(), ex);
|
||||
}
|
||||
}
|
||||
|
||||
public void attribPackage(DiagnosticPosition pos, PackageSymbol p) {
|
||||
try {
|
||||
annotate.flush();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user