8254096: remove jdk.test.lib.Utils::getMandatoryProperty(String) method
Reviewed-by: shade
This commit is contained in:
parent
d1e94eebdd
commit
9cdfd0fafe
@ -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.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user