reformatted project
This commit is contained in:
@@ -21,6 +21,7 @@ public enum Resource {
|
||||
|
||||
private final Path path;
|
||||
private final String name;
|
||||
|
||||
Resource(String name, boolean keepOutdated) {
|
||||
this.name = name;
|
||||
this.path = Path.of("resources/" + name);
|
||||
@@ -28,7 +29,7 @@ public enum Resource {
|
||||
try {
|
||||
Logger.getLogger("ressource").info("extracting resource " + name + " ... ");
|
||||
ResourceUtils.extractResource(name, keepOutdated);
|
||||
} catch (URISyntaxException | IOException e) {
|
||||
} catch(URISyntaxException | IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
@@ -38,10 +39,10 @@ public enum Resource {
|
||||
}
|
||||
|
||||
public Path getPath() {
|
||||
return path;
|
||||
return this.path;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user