src/share/classes/com/sun/tools/javac/code/TypeAnnotationPosition.java

changeset 2047
5f915a0c9615
parent 1755
ddb4a2bfcd82
child 2525
2eb010b6cb22
     1.1 --- a/src/share/classes/com/sun/tools/javac/code/TypeAnnotationPosition.java	Mon Sep 23 10:10:07 2013 +0200
     1.2 +++ b/src/share/classes/com/sun/tools/javac/code/TypeAnnotationPosition.java	Mon Sep 23 10:42:38 2013 +0200
     1.3 @@ -304,7 +304,7 @@
     1.4       * @param list The bytecode representation of the type path.
     1.5       */
     1.6      public static List<TypePathEntry> getTypePathFromBinary(java.util.List<Integer> list) {
     1.7 -        ListBuffer<TypePathEntry> loc = ListBuffer.lb();
     1.8 +        ListBuffer<TypePathEntry> loc = new ListBuffer<>();
     1.9          Iterator<Integer> iter = list.iterator();
    1.10          while (iter.hasNext()) {
    1.11              Integer fst = iter.next();
    1.12 @@ -316,7 +316,7 @@
    1.13      }
    1.14  
    1.15      public static List<Integer> getBinaryFromTypePath(java.util.List<TypePathEntry> locs) {
    1.16 -        ListBuffer<Integer> loc = ListBuffer.lb();
    1.17 +        ListBuffer<Integer> loc = new ListBuffer<>();
    1.18          for (TypePathEntry tpe : locs) {
    1.19              loc = loc.append(tpe.tag.tag);
    1.20              loc = loc.append(tpe.arg);

mercurial