Permalink
Browse files

style: make PGReplicationStream, LargeObject implement AutoCloseable …

…for Java 7+ (#1016)

fixes #1011
closes #1013
  • Loading branch information...
vlsi committed Nov 11, 2017
1 parent cccd6cd commit 9f07c9ae2eb0c1ec18455e3a3d66460dd264c790
@@ -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
*/
@@ -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

0 comments on commit 9f07c9a

Please sign in to comment.