test/tools/javac/7182350/T7182350.java

Mon, 23 Sep 2013 10:42:38 +0200

author
alundblad
date
Mon, 23 Sep 2013 10:42:38 +0200
changeset 2047
5f915a0c9615
parent 0
959103a6100f
permissions
-rw-r--r--

6386236: Please rename com.sun.tools.javac.util.ListBuffer.lb()
Summary: Static factory method ListBuffer.lb removed. Replaced by constructor calls.
Reviewed-by: jfranck, jjg

     1 /**
     2  * @test  /nodynamiccopyright/
     3  * @bug 7182350
     4  * @summary verify correct output of -Xlint:unchecked on methods with unchecked conversations in parameters
     5  * @compile/ref=T7182350.out -XDrawDiagnostics -Xlint:unchecked T7182350.java
     6  */
     8 import java.util.*;
    10 class T7182350 {
    11     public static void quicksort(Vector vector, Comparator compare) {
    12         Collections.sort(vector,compare);
    13     }
    14 }

mercurial