Skip to content

Commit b0837a2

Browse files
committed
It seems that Gradle's custom serialization doesn't support the List.of() stuff introduced in recent JDKs....
1 parent 70cc491 commit b0837a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/main/java/com/diffplug/spotless/FileSignature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public static Promised promise(Iterable<File> files) {
126126
}
127127

128128
public static Promised promise(File file) {
129-
return new Promised(List.of(file), null);
129+
return new Promised(MoreIterables.toNullHostileList(List.of(file)), null);
130130
}
131131

132132
/** Returns all of the files in this signature, throwing an exception if there are more or less than 1 file. */

0 commit comments

Comments
 (0)