Skip to content

Commit 1d936f1

Browse files
committed
Add missing FileSignature.promise method.
1 parent 819fed5 commit 1d936f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ public static Promised promise(Iterable<File> files) {
125125
return new Promised(MoreIterables.toNullHostileList(files), null);
126126
}
127127

128+
public static Promised promise(File file) {
129+
return new Promised(List.of(file), null);
130+
}
131+
128132
/** Returns all of the files in this signature, throwing an exception if there are more or less than 1 file. */
129133
public Collection<File> files() {
130134
return Collections.unmodifiableList(files);

0 commit comments

Comments
 (0)