We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FileSignature.promise
1 parent 819fed5 commit 1d936f1Copy full SHA for 1d936f1
lib/src/main/java/com/diffplug/spotless/FileSignature.java
@@ -125,6 +125,10 @@ public static Promised promise(Iterable<File> files) {
125
return new Promised(MoreIterables.toNullHostileList(files), null);
126
}
127
128
+ public static Promised promise(File file) {
129
+ return new Promised(List.of(file), null);
130
+ }
131
+
132
/** Returns all of the files in this signature, throwing an exception if there are more or less than 1 file. */
133
public Collection<File> files() {
134
return Collections.unmodifiableList(files);
0 commit comments