-
-
Notifications
You must be signed in to change notification settings - Fork 800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ErrorReportConfiguration
#1067
Add ErrorReportConfiguration
#1067
Conversation
* | ||
* @since 2.16 | ||
*/ | ||
public class ErrorReportConfigurationTest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unit-test.
All the tests in the original PR #1043 had JsonFactory
, IOContext
, etc in scope, so they will be added later along the way.
private static ErrorReportConfiguration DEFAULT = | ||
new ErrorReportConfiguration(DEFAULT_MAX_ERROR_TOKEN_LENGTH, DEFAULT_MAX_RAW_CONTENT_LENGTH); | ||
|
||
public static void overrideDefaultErrorReportConfiguration(final ErrorReportConfiguration errorReportConfiguration) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you copy Javadoc from matching method in StreamWriteConstaints
, warning against use of this method?
In general it should not be used and specifically libraries should not change global defaults, ever.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or actually I can do this.
ErrorReportConfiguration
ErrorReportConfiguration
Thank you @JooHyukKim ! |
part of #1066