Skip to content

Commit

Permalink
Revert utility functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimY4 committed Aug 29, 2023
1 parent 711c7bc commit 5f673b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1661,8 +1661,8 @@ checkNotIsSet([v.names.isSet](), "[v.names.raw]");
[deprecation v]
[varargsSafety v]
public final java.util.List<[attributeBuilderBuilderType v.getAttributeBuilderDescriptor]> [v.names.getBuilders]() {
[if v.generateJdkOnly]
return createUnmodifiableList(false, this.[v.name]);
[else if v.generateJdkOnly]
return [if v.generateJdk9]java.util.List.copyOf(this.[v.name])[else]createUnmodifiableList(false, this.[v.name])[/if];
[else]
return this.[v.name].build();
[/if]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,8 @@ public boolean apply(ValueAttribute attribute) {
if (def) {
switch (kind) {
case MAP:
case LIST:
case SET:
return !attribute.isGenerateJdk9();
default:
return true;
Expand Down

0 comments on commit 5f673b7

Please sign in to comment.