8254096: remove jdk.test.lib.Utils::getMandatoryProperty(String) method

Reviewed-by: shade
This commit is contained in:
Igor Ignatyev 2020-10-08 06:56:20 +00:00
parent d1e94eebdd
commit 9cdfd0fafe

View File

@ -773,19 +773,6 @@ public final class Utils {
NULL_VALUES.put(double.class, 0.0d);
}
/**
* Returns mandatory property value
* @param propName is a name of property to request
* @return a String with requested property value
*/
public static String getMandatoryProperty(String propName) {
Objects.requireNonNull(propName, "Requested null property");
String prop = System.getProperty(propName);
Objects.requireNonNull(prop,
String.format("A mandatory property '%s' isn't set", propName));
return prop;
}
/*
* Run uname with specified arguments.
*/