Skip to content

Commit f576267

Browse files
committed
Add back the method we removed before, because it avoids IOExceptions.
1 parent 31cb495 commit f576267

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
@@ -121,6 +121,10 @@ public Promised asPromise() {
121121
return new Promised(files, this);
122122
}
123123

124+
public static Promised promise(Iterable<File> files) {
125+
return new Promised(MoreIterables.toNullHostileList(files), null);
126+
}
127+
124128
/** Returns all of the files in this signature, throwing an exception if there are more or less than 1 file. */
125129
public Collection<File> files() {
126130
return Collections.unmodifiableList(files);

0 commit comments

Comments
 (0)