src/share/classes/com/sun/tools/javac/comp/Flow.java

changeset 1521
71f35e4b93a5
parent 1442
fcf89720ae71
child 1693
c430f1cde21c
     1.1 --- a/src/share/classes/com/sun/tools/javac/comp/Flow.java	Wed Jan 23 20:57:40 2013 +0000
     1.2 +++ b/src/share/classes/com/sun/tools/javac/comp/Flow.java	Wed Jan 23 13:27:24 2013 -0800
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -35,6 +35,7 @@
    1.11  import com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition;
    1.12  
    1.13  import com.sun.tools.javac.code.Symbol.*;
    1.14 +import com.sun.tools.javac.comp.Resolve;
    1.15  import com.sun.tools.javac.tree.JCTree.*;
    1.16  
    1.17  import static com.sun.tools.javac.code.Flags.*;
    1.18 @@ -2175,6 +2176,11 @@
    1.19              unrefdResources.remove(sym);
    1.20          }
    1.21  
    1.22 +        public void visitAnnotatedType(JCAnnotatedType tree) {
    1.23 +            // annotations don't get scanned
    1.24 +            tree.underlyingType.accept(this);
    1.25 +        }
    1.26 +
    1.27          public void visitTopLevel(JCCompilationUnit tree) {
    1.28              // Do nothing for TopLevel since each class is visited individually
    1.29          }

mercurial