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.
ForeignExe
1 parent d12de4f commit 0fe5d42Copy full SHA for 0fe5d42
lib/src/main/java/com/diffplug/spotless/ForeignExe.java
@@ -16,6 +16,7 @@
16
package com.diffplug.spotless;
17
18
import java.io.IOException;
19
+import java.io.Serializable;
20
import java.nio.charset.Charset;
21
import java.util.Objects;
22
import java.util.regex.Matcher;
@@ -31,7 +32,8 @@
31
32
* Usage: {@code ForeignExe.nameAndVersion("grep", "2.5.7").confirmVersionAndGetAbsolutePath()}
33
* will find grep, confirm that it is version 2.5.7, and then return.
34
*/
-public class ForeignExe {
35
+public class ForeignExe implements Serializable {
36
+ private static final long serialVersionUID = 1L;
37
private @Nullable String pathToExe;
38
private String versionFlag = "--version";
39
private Pattern versionRegex = Pattern.compile("version (\\S*)");
0 commit comments