--- a/jdk/src/share/classes/java/lang/StackTraceElement.java Tue Feb 01 14:20:01 2011 -0800
+++ b/jdk/src/share/classes/java/lang/StackTraceElement.java Wed Feb 02 13:13:34 2011 -0500
@@ -68,8 +68,8 @@
*/
public StackTraceElement(String declaringClass, String methodName,
String fileName, int lineNumber) {
- this.declaringClass = Objects.nonNull(declaringClass, "Declaring class is null");
- this.methodName = Objects.nonNull(methodName, "Method name is null");
+ this.declaringClass = Objects.requireNonNull(declaringClass, "Declaring class is null");
+ this.methodName = Objects.requireNonNull(methodName, "Method name is null");
this.fileName = fileName;
this.lineNumber = lineNumber;
}