jdk/src/share/classes/java/lang/StackTraceElement.java
changeset 8166 13423c0952ad
parent 7186 7f5fe8985263
child 9035 1255eb81cc2f
equal deleted inserted replaced
8165:b67d8b1f4e46 8166:13423c0952ad
    66      *         {@code methodName} is null
    66      *         {@code methodName} is null
    67      * @since 1.5
    67      * @since 1.5
    68      */
    68      */
    69     public StackTraceElement(String declaringClass, String methodName,
    69     public StackTraceElement(String declaringClass, String methodName,
    70                              String fileName, int lineNumber) {
    70                              String fileName, int lineNumber) {
    71         this.declaringClass = Objects.nonNull(declaringClass, "Declaring class is null");
    71         this.declaringClass = Objects.requireNonNull(declaringClass, "Declaring class is null");
    72         this.methodName     = Objects.nonNull(methodName, "Method name is null");
    72         this.methodName     = Objects.requireNonNull(methodName, "Method name is null");
    73         this.fileName       = fileName;
    73         this.fileName       = fileName;
    74         this.lineNumber     = lineNumber;
    74         this.lineNumber     = lineNumber;
    75     }
    75     }
    76 
    76 
    77     /**
    77     /**