Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: remove Java 8 / JDBC 4.2 checks #2383

Merged
merged 1 commit into from Jan 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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