Skip to content

Commit a706e7f

Browse files
authored
Ignore Spotbugs warning CT_CONSTRUCTOR_THROW (#2421)
1 parent 98b5e1b commit a706e7f

27 files changed

+2
-105
lines changed

core/src/integration-test/java/com/scalar/db/storage/jdbc/JdbcAdminImportTestUtils.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,6 @@ public JdbcAdminImportTestUtils(Properties properties) {
118118
majorVersion = getMajorVersion();
119119
}
120120

121-
// For the SpotBugs warning CT_CONSTRUCTOR_THROW
122-
@Override
123-
protected final void finalize() {}
124-
125121
public Map<String, TableMetadata> createExistingDatabaseWithAllDataTypes(String namespace)
126122
throws SQLException {
127123
execute(rdbEngine.createSchemaSqls(namespace));

core/src/main/java/com/scalar/db/common/ActiveTransactionManagedDistributedTransactionManager.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,6 @@ private ActiveTransaction(DistributedTransaction transaction) throws Transaction
103103
add(this);
104104
}
105105

106-
// For the SpotBugs warning CT_CONSTRUCTOR_THROW
107-
@Override
108-
protected final void finalize() {}
109-
110106
@Override
111107
public synchronized Optional<Result> get(Get get) throws CrudException {
112108
return super.get(get);

core/src/main/java/com/scalar/db/common/ActiveTransactionManagedTwoPhaseCommitTransactionManager.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,6 @@ private ActiveTransaction(TwoPhaseCommitTransaction transaction) throws Transact
110110
add(this);
111111
}
112112

113-
// For the SpotBugs warning CT_CONSTRUCTOR_THROW
114-
@Override
115-
protected final void finalize() {}
116-
117113
@Override
118114
public synchronized Optional<Result> get(Get get) throws CrudException {
119115
return super.get(get);

core/src/main/java/com/scalar/db/config/DatabaseConfig.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,6 @@ public DatabaseConfig(Path propertiesPath) throws IOException {
8484
this(propertiesPath.toFile());
8585
}
8686

87-
// For the SpotBugs warning CT_CONSTRUCTOR_THROW
88-
@Override
89-
protected final void finalize() {}
90-
9187
public Properties getProperties() {
9288
Properties ret = new Properties();
9389
ret.putAll(props);

core/src/main/java/com/scalar/db/io/BigIntColumn.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ private BigIntColumn(String name, long value, boolean hasNullValue) {
4040
this.hasNullValue = hasNullValue;
4141
}
4242

43-
// For the SpotBugs warning CT_CONSTRUCTOR_THROW
44-
@Override
45-
protected final void finalize() {}
46-
4743
@Override
4844
public String getName() {
4945
return name;

core/src/main/java/com/scalar/db/storage/cassandra/Cassandra.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ public Cassandra(DatabaseConfig config) {
8888
this.operationChecker = operationChecker;
8989
}
9090

91-
// For the SpotBugs warning CT_CONSTRUCTOR_THROW
92-
@Override
93-
protected final void finalize() {}
94-
9591
@Override
9692
@Nonnull
9793
public Optional<Result> get(Get get) throws ExecutionException {

core/src/main/java/com/scalar/db/storage/cassandra/CassandraConfig.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ public CassandraConfig(DatabaseConfig databaseConfig) {
1616
metadataKeyspace = databaseConfig.getSystemNamespaceName();
1717
}
1818

19-
// For the SpotBugs warning CT_CONSTRUCTOR_THROW
20-
@Override
21-
protected final void finalize() {}
22-
2319
public String getMetadataKeyspace() {
2420
return metadataKeyspace;
2521
}

core/src/main/java/com/scalar/db/storage/cosmos/Cosmos.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ public Cosmos(DatabaseConfig databaseConfig) {
8888
this.operationChecker = operationChecker;
8989
}
9090

91-
// For the SpotBugs warning CT_CONSTRUCTOR_THROW
92-
@Override
93-
protected final void finalize() {}
94-
9591
@Override
9692
@Nonnull
9793
public Optional<Result> get(Get get) throws ExecutionException {

core/src/main/java/com/scalar/db/storage/cosmos/CosmosConfig.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ public CosmosConfig(DatabaseConfig databaseConfig) {
5858
consistencyLevel = getString(databaseConfig.getProperties(), CONSISTENCY_LEVEL, null);
5959
}
6060

61-
// For the SpotBugs warning CT_CONSTRUCTOR_THROW
62-
@Override
63-
protected final void finalize() {}
64-
6561
public String getEndpoint() {
6662
return endpoint;
6763
}

core/src/main/java/com/scalar/db/storage/dynamo/Dynamo.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,6 @@ public Dynamo(DatabaseConfig databaseConfig) {
105105
this.operationChecker = operationChecker;
106106
}
107107

108-
// For the SpotBugs warning CT_CONSTRUCTOR_THROW
109-
@Override
110-
protected final void finalize() {}
111-
112108
@Override
113109
@Nonnull
114110
public Optional<Result> get(Get get) throws ExecutionException {

0 commit comments

Comments
 (0)