< prev index next >

test/compiler/rangechecks/PowerOf2SizedArraysChecks.java

Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke

@@ -24,16 +24,21 @@
 
 /**
  * @test
  * @bug 8003585
  * @summary strength reduce or eliminate range checks for power-of-two sized arrays
- * @run main/othervm -XX:CompileCommand=compileonly,PowerOf2SizedArraysChecks::test* -XX:-BackgroundCompilation PowerOf2SizedArraysChecks
  *
+ * @run main/othervm -XX:CompileCommand=compileonly,compiler.rangechecks.PowerOf2SizedArraysChecks::test*
+ *                   -XX:-BackgroundCompilation
+ *                   compiler.rangechecks.PowerOf2SizedArraysChecks
  */
 
-import java.util.function.*;
+package compiler.rangechecks;
 
+import java.util.function.BiFunction;
+import java.util.function.Function;
+
 public class PowerOf2SizedArraysChecks {
 
     static void check_result(String name, int x, int m, boolean expected, boolean res) {
         if (expected != res) {
             throw new RuntimeException("Bad result in " + name + " for x =  " + x + " m = " + m + " expected " + expected  + " got " + res);
< prev index next >