langtools/src/share/classes/com/sun/tools/javac/util/ListBuffer.java
changeset 22163 3651128c74eb
parent 22159 682da512ec17
equal deleted inserted replaced
22162:3b3e23e67329 22163:3651128c74eb
    39  *  deletion without notice.</b>
    39  *  deletion without notice.</b>
    40  */
    40  */
    41 public class ListBuffer<A> extends AbstractQueue<A> {
    41 public class ListBuffer<A> extends AbstractQueue<A> {
    42 
    42 
    43     public static <T> ListBuffer<T> of(T x) {
    43     public static <T> ListBuffer<T> of(T x) {
    44         ListBuffer<T> lb = new ListBuffer<T>();
    44         ListBuffer<T> lb = new ListBuffer<>();
    45         lb.add(x);
    45         lb.add(x);
    46         return lb;
    46         return lb;
    47     }
    47     }
    48 
    48 
    49     /** The list of elements of this buffer.
    49     /** The list of elements of this buffer.