src/share/classes/com/sun/tools/javac/parser/Tokens.java

changeset 2047
5f915a0c9615
parent 1503
2d2b2be57c78
child 2525
2eb010b6cb22
     1.1 --- a/src/share/classes/com/sun/tools/javac/parser/Tokens.java	Mon Sep 23 10:10:07 2013 +0200
     1.2 +++ b/src/share/classes/com/sun/tools/javac/parser/Tokens.java	Mon Sep 23 10:42:38 2013 +0200
     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 @@ -402,7 +402,7 @@
    1.11              if (comments == null) {
    1.12                  return List.nil();
    1.13              } else {
    1.14 -                ListBuffer<Comment> buf = ListBuffer.lb();
    1.15 +                ListBuffer<Comment> buf = new ListBuffer<>();
    1.16                  for (Comment c : comments) {
    1.17                      if (c.getStyle() == style) {
    1.18                          buf.add(c);

mercurial