Skip to content

Commit b9df716

Browse files
committed
Revert utility functions.
1 parent 711c7bc commit b9df716

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

value-processor/src/org/immutables/value/processor/Immutables.generator

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1662,7 +1662,7 @@ checkNotIsSet([v.names.isSet](), "[v.names.raw]");
16621662
[varargsSafety v]
16631663
public final java.util.List<[attributeBuilderBuilderType v.getAttributeBuilderDescriptor]> [v.names.getBuilders]() {
16641664
[if v.generateJdkOnly]
1665-
return createUnmodifiableList(false, this.[v.name]);
1665+
return [if v.generateJdk9]java.util.List.copyOf(this.[v.name])[else]createUnmodifiableList(false, this.[v.name])[/if];
16661666
[else]
16671667
return this.[v.name].build();
16681668
[/if]

value-processor/src/org/immutables/value/processor/meta/ValueType.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,8 @@ public boolean apply(ValueAttribute attribute) {
11601160
if (def) {
11611161
switch (kind) {
11621162
case MAP:
1163+
case LIST:
1164+
case SET:
11631165
return !attribute.isGenerateJdk9();
11641166
default:
11651167
return true;

0 commit comments

Comments
 (0)