Compare commits
No commits in common. "204198f1435d6b44cf8209df93e00da08cdb6317" and "b88d7f3e08692d3bb8d5ae7f9454afc17075c2f1" have entirely different histories.
204198f143
...
b88d7f3e08
@ -58,7 +58,6 @@ 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() {
|
public BuilderResult build() throws Exception {
|
||||||
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 load(Path.of("."), "test.json", ConfigClazz.class);
|
return (ConfigClazz) load(Path.of("."), "test.json", ConfigClazz.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,13 @@ 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,4 +23,10 @@ public interface SqlConnection extends AutoCloseable {
|
|||||||
*/
|
*/
|
||||||
void checkConnection() throws SQLException;
|
void checkConnection() throws SQLException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated replaced with {@link AutoCloseable#close()}
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true)
|
||||||
|
void closeConnection();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
okhttp_version=4.12.0
|
okhttp_version=4.10.0
|
Loading…
Reference in New Issue
Block a user