src/share/classes/com/sun/tools/javac/model/JavacAnnoConstructs.java

changeset 2047
5f915a0c9615
parent 1930
051e64d0816e
     1.1 --- a/src/share/classes/com/sun/tools/javac/model/JavacAnnoConstructs.java	Mon Sep 23 10:10:07 2013 +0200
     1.2 +++ b/src/share/classes/com/sun/tools/javac/model/JavacAnnoConstructs.java	Mon Sep 23 10:42:38 2013 +0200
     1.3 @@ -207,7 +207,7 @@
     1.4          Attribute[] contained0 = null;
     1.5          if (container != null)
     1.6              contained0 = unpackAttributes(container);
     1.7 -        ListBuffer<Attribute.Compound> compounds = ListBuffer.lb();
     1.8 +        ListBuffer<Attribute.Compound> compounds = new ListBuffer<>();
     1.9          if (contained0 != null) {
    1.10              for (Attribute a : contained0)
    1.11                  if (a instanceof Attribute.Compound)
    1.12 @@ -328,7 +328,7 @@
    1.13          Attribute[] contained0 = null;
    1.14          if (container != null)
    1.15              contained0 = unpackAttributes(container);
    1.16 -        ListBuffer<Attribute.Compound> compounds = ListBuffer.lb();
    1.17 +        ListBuffer<Attribute.Compound> compounds = new ListBuffer<>();
    1.18          if (contained0 != null) {
    1.19              for (Attribute a : contained0)
    1.20                  if (a instanceof Attribute.Compound)

mercurial