You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicstaticclassResponseBuilder {
publicResponseBuilderheader(Stringname, Stringvalue) {
headers().put(name, value);
returnthis;
}
protectedHeadersheaders() { // protected since default Builder is not final - can be extended?if (!headers$set) headers$value = $default$headers();
returnheaders$value;
}
}
Describe the target audience
Anyone needing custom methods in their builders
The text was updated successfully, but these errors were encountered:
Describe the feature
add protected getters to builders so custom builder methods can use them.
Current situation:
After the change:
Implementation:
Describe the target audience
Anyone needing custom methods in their builders
The text was updated successfully, but these errors were encountered: