< prev index next >

src/java.base/share/classes/java/util/regex/PatternSyntaxException.java

Print this page

        

*** 55,65 **** * @param regex * The erroneous pattern * * @param index * The approximate index in the pattern of the error, ! * or <tt>-1</tt> if the index is not known */ public PatternSyntaxException(String desc, String regex, int index) { this.desc = desc; this.pattern = regex; this.index = index; --- 55,65 ---- * @param regex * The erroneous pattern * * @param index * The approximate index in the pattern of the error, ! * or {@code -1} if the index is not known */ public PatternSyntaxException(String desc, String regex, int index) { this.desc = desc; this.pattern = regex; this.index = index;
*** 67,77 **** /** * Retrieves the error index. * * @return The approximate index in the pattern of the error, ! * or <tt>-1</tt> if the index is not known */ public int getIndex() { return index; } --- 67,77 ---- /** * Retrieves the error index. * * @return The approximate index in the pattern of the error, ! * or {@code -1} if the index is not known */ public int getIndex() { return index; }
< prev index next >