8211975: move testlibrary/jdk/testlibrary/OptimalCapacity.java to top-level library

Reviewed-by: igerasim
This commit is contained in:
Hamlin Li 2018-11-28 15:34:43 +08:00
parent 17773c31b6
commit bb50695ff9
4 changed files with 10 additions and 10 deletions

View File

@ -25,14 +25,14 @@
* @test
* @bug 8080535 8191410
* @summary Expected size of Character.UnicodeBlock.map is not optimal
* @library /lib/testlibrary
* @library /test/lib
* @modules java.base/java.lang:open
* java.base/java.util:open
* @build jdk.testlibrary.OptimalCapacity
* @build jdk.test.lib.util.OptimalCapacity
* @run main OptimalMapSize
*/
import jdk.testlibrary.OptimalCapacity;
import jdk.test.lib.util.OptimalCapacity;
// What will be the number of the Unicode blocks in the future.
//

View File

@ -25,14 +25,14 @@
* @test
* @bug 8200696
* @summary Initial capacity of Class.enumConstantDirectory is not optimal
* @library /lib/testlibrary
* @library /test/lib
* @modules java.base/java.lang:open
* java.base/java.util:open
* @build jdk.testlibrary.OptimalCapacity
* @build jdk.test.lib.util.OptimalCapacity
* @run main ConstantDirectoryOptimalCapacity
*/
import jdk.testlibrary.OptimalCapacity;
import jdk.test.lib.util.OptimalCapacity;
public class ConstantDirectoryOptimalCapacity {

View File

@ -25,15 +25,15 @@
* @test
* @bug 8200788
* @summary Optimal initial capacity of AccessMode.methodNameToAccessMode
* @library /lib/testlibrary
* @library /test/lib
* @modules java.base/java.lang.invoke:open
* java.base/java.util:open
* @build jdk.testlibrary.OptimalCapacity
* @build jdk.test.lib.util.OptimalCapacity
* @run main OptimalMapSize
*/
import java.lang.invoke.VarHandle.AccessMode;
import jdk.testlibrary.OptimalCapacity;
import jdk.test.lib.util.OptimalCapacity;
public class OptimalMapSize {
public static void main(String[] args) throws Throwable {

View File

@ -21,7 +21,7 @@
* questions.
*/
package jdk.testlibrary;
package jdk.test.lib.util;
import java.lang.reflect.Field;
import java.util.ArrayList;