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: make PGReplicationStream, LargeObject implement AutoCloseable for Java 7+ #1016

Merged
merged 1 commit into from Nov 11, 2017
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 @@ -41,7 +41,11 @@
* @see java.sql.PreparedStatement#setBinaryStream
* @see java.sql.PreparedStatement#setUnicodeStream
*/
public class LargeObject {
public class LargeObject
//#if mvn.project.property.postgresql.jdbc.spec >= "JDBC4.1"
implements AutoCloseable
//#endif
/* hi, checkstyle */ {
/**
* Indicates a seek from the begining of a file
*/
Expand Down
Expand Up @@ -17,7 +17,11 @@
* It means that process wal record should be fast as possible, because during process wal record
* lead to disconnect by timeout from server.
*/
public interface PGReplicationStream {
public interface PGReplicationStream
//#if mvn.project.property.postgresql.jdbc.spec >= "JDBC4.1"
extends AutoCloseable
//#endif
/* hi, checkstyle */ {

/**
* <p>Read next wal record from backend. It method can be block until new message will not get
Expand Down