jdk/src/share/classes/java/lang/StackTraceElement.java
changeset 18156 edb590d448c5
parent 9035 1255eb81cc2f
child 23010 6dadb192ad81
equal deleted inserted replaced
18155:889970e5b728 18156:edb590d448c5
   179     /**
   179     /**
   180      * Returns true if the specified object is another
   180      * Returns true if the specified object is another
   181      * {@code StackTraceElement} instance representing the same execution
   181      * {@code StackTraceElement} instance representing the same execution
   182      * point as this instance.  Two stack trace elements {@code a} and
   182      * point as this instance.  Two stack trace elements {@code a} and
   183      * {@code b} are equal if and only if:
   183      * {@code b} are equal if and only if:
   184      * <pre>
   184      * <pre>{@code
   185      *     equals(a.getFileName(), b.getFileName()) &&
   185      *     equals(a.getFileName(), b.getFileName()) &&
   186      *     a.getLineNumber() == b.getLineNumber()) &&
   186      *     a.getLineNumber() == b.getLineNumber()) &&
   187      *     equals(a.getClassName(), b.getClassName()) &&
   187      *     equals(a.getClassName(), b.getClassName()) &&
   188      *     equals(a.getMethodName(), b.getMethodName())
   188      *     equals(a.getMethodName(), b.getMethodName())
   189      * </pre>
   189      * }</pre>
   190      * where {@code equals} has the semantics of {@link
   190      * where {@code equals} has the semantics of {@link
   191      * java.util.Objects#equals(Object, Object) Objects.equals}.
   191      * java.util.Objects#equals(Object, Object) Objects.equals}.
   192      *
   192      *
   193      * @param  obj the object to be compared with this stack trace element.
   193      * @param  obj the object to be compared with this stack trace element.
   194      * @return true if the specified object is another
   194      * @return true if the specified object is another