equal
deleted
inserted
replaced
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 /** |