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 b9df716
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,7 @@ checkNotIsSet([v.names.isSet](), "[v.names.raw]");
[varargsSafety v]
public final java.util.List<[attributeBuilderBuilderType v.getAttributeBuilderDescriptor]> [v.names.getBuilders]() {
[if v.generateJdkOnly]
return createUnmodifiableList(false, this.[v.name]);
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 b9df716

Please sign in to comment.