Skip to content

Commit

Permalink
style: remove Java 8 / JDBC 4.2 checks (#2383)
Browse files Browse the repository at this point in the history
Remove all remaining checks whether the source is lower than Java 8
or JDBC 4.2.

See #1848
  • Loading branch information
marschall committed Jan 3, 2022
1 parent 3a1dc68 commit 6656eae
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
Expand Up @@ -1626,7 +1626,6 @@ public void setAdaptiveFetchMinimum(int adaptiveFetchMinimum) {
PGProperty.ADAPTIVE_FETCH_MINIMUM.set(properties, adaptiveFetchMinimum);
}

//#if mvn.project.property.postgresql.jdbc.spec >= "JDBC4.1"
@Override
public java.util.logging.Logger getParentLogger() {
return Logger.getLogger("org.postgresql");
Expand Down
Expand Up @@ -102,25 +102,12 @@ private void feedTableAndCheckTableFeedIsOk(Connection conn) throws Throwable {
} catch (Throwable t) {
String message = "Using seed = " + seed + " for StrangeInputStream. Set -DStrangeInputStream.seed="
+ seed + " to reproduce the test";
//#if mvn.project.property.postgresql.jdbc.spec >= "JDBC4.1"
t.addSuppressed(new Throwable(message) {
@Override
public synchronized Throwable fillInStackTrace() {
return this;
}
});
//#else
if (t.getCause() != null) {
System.err.println(message);
} else {
t.initCause(new Throwable(message) {
@Override
public synchronized Throwable fillInStackTrace() {
return this;
}
});
}
//#endif
} finally {
if (in != null) {
in.close();
Expand Down

0 comments on commit 6656eae

Please sign in to comment.