Skip to content

Commit

Permalink
Prefix errorReportConfiguration with get
Browse files Browse the repository at this point in the history
  • Loading branch information
JooHyukKim committed Jul 28, 2023
1 parent 38f8009 commit 1cd5cef
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/fasterxml/jackson/core/io/IOContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public StreamWriteConstraints streamWriteConstraints() {
*
* @since 2.16
*/
public ErrorReportConfiguration errorReportConfiguration() {
public ErrorReportConfiguration getErrorReportConfiguration() {
return _errorReportConfiguration;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3033,7 +3033,7 @@ protected void _reportInvalidToken(String matchedPart, String msg) throws IOExce
}
++_inputPtr;
sb.append(c);
if (sb.length() >= _ioContext.errorReportConfiguration().getMaxErrorTokenLength()) {
if (sb.length() >= _ioContext.getErrorReportConfiguration().getMaxErrorTokenLength()) {
sb.append("...");
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3691,7 +3691,7 @@ protected void _reportInvalidToken(String matchedPart, String msg) throws IOExce
break;
}
sb.append(c);
if (sb.length() >= _ioContext.errorReportConfiguration().getMaxErrorTokenLength()) {
if (sb.length() >= _ioContext.getErrorReportConfiguration().getMaxErrorTokenLength()) {
sb.append("...");
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ protected JsonToken _finishErrorToken() throws IOException
// 11-Jan-2016, tatu: note: we will fully consume the character,
// included or not, so if recovery was possible, it'd be off-by-one...
_textBuffer.append(ch);
if (_textBuffer.size() < _ioContext.errorReportConfiguration().getMaxErrorTokenLength()) {
if (_textBuffer.size() < _ioContext.getErrorReportConfiguration().getMaxErrorTokenLength()) {
continue;
}
}
Expand Down

0 comments on commit 1cd5cef

Please sign in to comment.