-
-
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
Retrofit ContentReference
with new ErrorReportConfiguration
#1070
Retrofit ContentReference
with new ErrorReportConfiguration
#1070
Conversation
@@ -203,10 +249,11 @@ public Object getRawContent() { | |||
* which content is counted, either bytes or chars) to use for truncation | |||
* (so as not to include full content for humongous sources or targets) | |||
* | |||
* @see ErrorReportConfiguration#builder()#_maxRawContentLength | |||
* @return Maximum content snippet to include before truncating | |||
*/ | |||
protected int maxContentSnippetLength() { |
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.
wrt method name, I think we need method named maxRawContentLength()
to return _maxRawContentLength
, not maxContentSnippetLength
.
Since the method is protected
., we can think of two options do with its name.
- Direclty change name. Since it is "Internal" accessor as mentioned in JavaDoc, shouldn't be used outside class
protected int maxContentSnippetLength() { | |
protected int maxRawContentLength() { |
- Since method is
protected
, take two steps. Deprecate originalmaxContentSnippetLength()
and create newmaxRawContentLength()
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.
Let's go with straight change since it is internal (option (1)). I feel confident this won't break usage by others, given it is reasonable recently added internal method.
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.
Great!
part of #1066
(blocked by #1068)