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

changeset 815
d17f37522154
parent 798
4868a36f6fd8
child 816
7c537f4298fb
     1.1 --- a/src/share/classes/com/sun/tools/javac/comp/TransTypes.java	Wed Jan 05 09:59:01 2011 +0000
     1.2 +++ b/src/share/classes/com/sun/tools/javac/comp/TransTypes.java	Mon Jan 10 14:57:59 2011 -0800
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1999, 2011, 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 @@ -69,7 +69,6 @@
    1.11      private boolean allowEnums;
    1.12      private Types types;
    1.13      private final Resolve resolve;
    1.14 -    private final TypeAnnotations typeAnnotations;
    1.15  
    1.16      /**
    1.17       * Flag to indicate whether or not to generate bridge methods.
    1.18 @@ -91,7 +90,6 @@
    1.19          types = Types.instance(context);
    1.20          make = TreeMaker.instance(context);
    1.21          resolve = Resolve.instance(context);
    1.22 -        typeAnnotations = TypeAnnotations.instance(context);
    1.23      }
    1.24  
    1.25      /** A hashtable mapping bridge methods to the methods they override after
    1.26 @@ -445,14 +443,12 @@
    1.27      }
    1.28  
    1.29      public void visitClassDef(JCClassDecl tree) {
    1.30 -        typeAnnotations.taFillAndLift(tree, true);
    1.31          translateClass(tree.sym);
    1.32          result = tree;
    1.33      }
    1.34  
    1.35      JCMethodDecl currentMethod = null;
    1.36      public void visitMethodDef(JCMethodDecl tree) {
    1.37 -        tree.sym.typeAnnotations = tree.sym.typeAnnotations;
    1.38          JCMethodDecl previousMethod = currentMethod;
    1.39          try {
    1.40              currentMethod = tree;

mercurial