5.0.0 #32
@ -58,6 +58,7 @@ public class ConfigI {
|
|||||||
Files.writeString(this.configPath, GSON.toJson(this));
|
Files.writeString(this.configPath, GSON.toJson(this));
|
||||||
// Files.copy(tempPath, this.configPath, StandardCopyOption.REPLACE_EXISTING);
|
// Files.copy(tempPath, this.configPath, StandardCopyOption.REPLACE_EXISTING);
|
||||||
// Files.delete(tempPath);
|
// Files.delete(tempPath);
|
||||||
|
// commented because throws an error on windows each time if the file already exist
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ public class BuilderImpl implements IBuilder<BuilderResult> {
|
|||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BuilderResult build() throws Exception {
|
public BuilderResult build() {
|
||||||
return new BuilderResult(collection.get(), numberOfSentences.get());
|
return new BuilderResult(collection.get(), numberOfSentences.get());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ public class ConfigITest {
|
|||||||
public double para3 = 3.14;
|
public double para3 = 3.14;
|
||||||
|
|
||||||
public static ConfigClazz load() throws IOException {
|
public static ConfigClazz load() throws IOException {
|
||||||
return (ConfigClazz) load(Path.of("."), "test.json", ConfigClazz.class);
|
return load(Path.of("."), "test.json", ConfigClazz.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -25,13 +25,6 @@ public abstract class AbstractSqlConnection implements SqlConnection {
|
|||||||
return connection;
|
return connection;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void closeConnection() {
|
|
||||||
try {
|
|
||||||
close();
|
|
||||||
} catch (Exception ignored) {}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void close() throws Exception {
|
public void close() throws Exception {
|
||||||
if(!connection.isClosed()) {
|
if(!connection.isClosed()) {
|
||||||
|
@ -23,10 +23,4 @@ public interface SqlConnection extends AutoCloseable {
|
|||||||
*/
|
*/
|
||||||
void checkConnection() throws SQLException;
|
void checkConnection() throws SQLException;
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated replaced with {@link AutoCloseable#close()}
|
|
||||||
*/
|
|
||||||
@Deprecated(forRemoval = true)
|
|
||||||
void closeConnection();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user