Skip to content

Commit

Permalink
style: make PGReplicationStream, LargeObject implement AutoCloseable …
Browse files Browse the repository at this point in the history
…for Java 7+ (#1016)

fixes #1011
closes #1013
  • Loading branch information
vlsi committed Nov 11, 2017
1 parent cccd6cd commit 9f07c9a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@
* @see java.sql.PreparedStatement#setBinaryStream * @see java.sql.PreparedStatement#setBinaryStream
* @see java.sql.PreparedStatement#setUnicodeStream * @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 * Indicates a seek from the begining of a file
*/ */
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
* It means that process wal record should be fast as possible, because during process wal record * It means that process wal record should be fast as possible, because during process wal record
* lead to disconnect by timeout from server. * 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 * <p>Read next wal record from backend. It method can be block until new message will not get
Expand Down

0 comments on commit 9f07c9a

Please sign in to comment.