Skip to content

Commit 0fe5d42

Browse files
committed
Make ForeignExe serializable.
1 parent d12de4f commit 0fe5d42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package com.diffplug.spotless;
1717

1818
import java.io.IOException;
19+
import java.io.Serializable;
1920
import java.nio.charset.Charset;
2021
import java.util.Objects;
2122
import java.util.regex.Matcher;
@@ -31,7 +32,8 @@
3132
* Usage: {@code ForeignExe.nameAndVersion("grep", "2.5.7").confirmVersionAndGetAbsolutePath()}
3233
* will find grep, confirm that it is version 2.5.7, and then return.
3334
*/
34-
public class ForeignExe {
35+
public class ForeignExe implements Serializable {
36+
private static final long serialVersionUID = 1L;
3537
private @Nullable String pathToExe;
3638
private String versionFlag = "--version";
3739
private Pattern versionRegex = Pattern.compile("version (\\S*)");

0 commit comments

Comments
 (0)