Skip to content

Commit 14a90ba

Browse files
committed
chore: try fix build by ensuring no cache hits
1 parent 5b5f24f commit 14a90ba

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

cli/src/main/java/dev/starfix/Starfix.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import java.util.Arrays;
2525
import java.io.File;
2626
import java.util.concurrent.TimeoutException;
27-
import java.util.regex.Matcher;
2827
import java.util.regex.Pattern;
2928
import com.fasterxml.jackson.databind.ObjectMapper;
3029
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
@@ -71,7 +70,7 @@ public int cloneCmd(@Parameters(index = "0") String url) {
7170
// System.out.println("\nLoading configurations.....\n");
7271
ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
7372

74-
Config config = mapper.readValue(configFile, Config.class);
73+
XConfig config = mapper.readValue(configFile, XConfig.class);
7574

7675
ide = config.ide;
7776
clone_path = config.clone_path;
@@ -180,7 +179,7 @@ public static void editConfig() throws Exception {
180179
"\n-New configuration file will be created at: " + configFile.getAbsolutePath() + "\n");
181180
configFile.createNewFile();
182181
}else{
183-
Config config = new ObjectMapper(new YAMLFactory()).readValue(configFile, Config.class);
182+
XConfig config = new ObjectMapper(new YAMLFactory()).readValue(configFile, XConfig.class);
184183
ide = config.getIde();
185184
clone_path = config.getClone_path();
186185
}
@@ -235,7 +234,7 @@ public static void editConfig() throws Exception {
235234
}
236235
// ----------Now we'll write configurations to the YAML FILE------------
237236
ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
238-
Config configuration = new Config(ide, clone_path);
237+
XConfig configuration = new XConfig(ide, clone_path);
239238
mapper.writeValue(configFile, configuration); // Writing to YAML File
240239

241240
} catch (Exception e) {
@@ -270,15 +269,15 @@ public static String runCommand(Path directory, String... command) throws IOExce
270269
}
271270

272271
@RegisterForReflection
273-
public static class Config {
272+
public static class XConfig {
274273
public String ide;
275274
public String clone_path;
276275

277-
public Config() {
276+
public XConfig() {
278277
// Default constructor
279278
}
280279

281-
public Config(String ide, String clone_path) {
280+
public XConfig(String ide, String clone_path) {
282281
this.ide = ide;
283282
this.clone_path = clone_path;
284283

0 commit comments

Comments
 (0)