Skip to content

Commit 9cdfd0f

Browse files
committed
8254096: remove jdk.test.lib.Utils::getMandatoryProperty(String) method
Reviewed-by: shade
1 parent d1e94ee commit 9cdfd0f

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

test/lib/jdk/test/lib/Utils.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -773,19 +773,6 @@ public static Object[] getNullValues(Class<?>... types) {
773773
NULL_VALUES.put(double.class, 0.0d);
774774
}
775775

776-
/**
777-
* Returns mandatory property value
778-
* @param propName is a name of property to request
779-
* @return a String with requested property value
780-
*/
781-
public static String getMandatoryProperty(String propName) {
782-
Objects.requireNonNull(propName, "Requested null property");
783-
String prop = System.getProperty(propName);
784-
Objects.requireNonNull(prop,
785-
String.format("A mandatory property '%s' isn't set", propName));
786-
return prop;
787-
}
788-
789776
/*
790777
* Run uname with specified arguments.
791778
*/

0 commit comments

Comments
 (0)