Compare commits

...

2 Commits

Author SHA1 Message Date
204198f143 Remove deprecated method and remove redundant cast or throws declaration
All checks were successful
Test and Deploy / build (17, ubuntu-latest) (push) Successful in 3m55s
Test and Deploy / build (17, ubuntu-latest) (pull_request) Successful in 4m7s
Test and Deploy / deploy (17, ubuntu-latest) (push) Has been skipped
Test and Deploy / deploy (17, ubuntu-latest) (pull_request) Has been skipped
2024-02-12 20:40:44 +01:00
9fdc4f4991 Update okhttp to fix vulnerability 2024-02-12 20:33:20 +01:00
6 changed files with 4 additions and 16 deletions

View File

@ -58,6 +58,7 @@ public class ConfigI {
Files.writeString(this.configPath, GSON.toJson(this));
// Files.copy(tempPath, this.configPath, StandardCopyOption.REPLACE_EXISTING);
// Files.delete(tempPath);
// commented because throws an error on windows each time if the file already exist
}
}

View File

@ -32,7 +32,7 @@ public class BuilderImpl implements IBuilder<BuilderResult> {
@Override
public BuilderResult build() throws Exception {
public BuilderResult build() {
return new BuilderResult(collection.get(), numberOfSentences.get());
}
}

View File

@ -14,7 +14,7 @@ public class ConfigITest {
public double para3 = 3.14;
public static ConfigClazz load() throws IOException {
return (ConfigClazz) load(Path.of("."), "test.json", ConfigClazz.class);
return load(Path.of("."), "test.json", ConfigClazz.class);
}
}

View File

@ -25,13 +25,6 @@ public abstract class AbstractSqlConnection implements SqlConnection {
return connection;
}
@Override
public void closeConnection() {
try {
close();
} catch (Exception ignored) {}
}
@Override
public void close() throws Exception {
if(!connection.isClosed()) {

View File

@ -23,10 +23,4 @@ public interface SqlConnection extends AutoCloseable {
*/
void checkConnection() throws SQLException;
/**
* @deprecated replaced with {@link AutoCloseable#close()}
*/
@Deprecated(forRemoval = true)
void closeConnection();
}

View File

@ -1 +1 @@
okhttp_version=4.10.0
okhttp_version=4.12.0