src/share/classes/com/sun/tools/javac/util/List.java

changeset 1362
c46e0c9940d6
parent 1347
1408af4cd8b0
child 1442
fcf89720ae71
     1.1 --- a/src/share/classes/com/sun/tools/javac/util/List.java	Wed Oct 10 18:34:46 2012 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/javac/util/List.java	Wed Oct 10 18:44:21 2012 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1999, 2012, 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 @@ -287,7 +287,7 @@
    1.11          if (isEmpty()) {
    1.12              return "";
    1.13          } else {
    1.14 -            StringBuffer buf = new StringBuffer();
    1.15 +            StringBuilder buf = new StringBuilder();
    1.16              buf.append(head);
    1.17              for (List<A> l = tail; l.nonEmpty(); l = l.tail) {
    1.18                  buf.append(sep);

mercurial