Permalink
Browse files

chore: upgrade checkstyle to 7.4, make checkstyle version configurabl…

…e via property (#725)
  • Loading branch information...
romani authored and vlsi committed Jan 9, 2017
1 parent 3a00ef9 commit e1a2578247684667a51bc34ee53449e4457755df
Showing with 6 additions and 28 deletions.
  1. +1 −1 pgjdbc/pom.xml
  2. +4 −2 pgjdbc/src/main/checkstyle/checks.xml
  3. +1 −1 pgjdbc/src/main/java/org/postgresql/PGProperty.java
  4. +0 −1 pgjdbc/src/main/java/org/postgresql/core/v3/CopyDualImpl.java
  5. +0 −1 pgjdbc/src/main/java/org/postgresql/core/v3/replication/V3PGReplicationStream.java
  6. +0 −1 pgjdbc/src/main/java/org/postgresql/core/v3/replication/V3ReplicationProtocol.java
  7. +0 −1 pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java
  8. +0 −1 pgjdbc/src/main/java/org/postgresql/largeobject/LargeObjectManager.java
  9. +0 −1 pgjdbc/src/main/java/org/postgresql/replication/LogSequenceNumber.java
  10. +0 −1 pgjdbc/src/main/java/org/postgresql/replication/PGReplicationConnectionImpl.java
  11. +0 −1 pgjdbc/src/main/java/org/postgresql/replication/PGReplicationStream.java
  12. +0 −1 pgjdbc/src/main/java/org/postgresql/replication/fluent/AbstractStreamBuilder.java
  13. +0 −1 pgjdbc/src/main/java/org/postgresql/replication/fluent/ChainedCommonStreamBuilder.java
  14. +0 −1 pgjdbc/src/main/java/org/postgresql/replication/fluent/ChainedStreamBuilder.java
  15. +0 −1 pgjdbc/src/main/java/org/postgresql/replication/fluent/ReplicationCreateSlotBuilder.java
  16. +0 −1 pgjdbc/src/main/java/org/postgresql/replication/fluent/ReplicationStreamBuilder.java
  17. +0 −1 pgjdbc/src/main/java/org/postgresql/replication/fluent/logical/ChainedLogicalStreamBuilder.java
  18. +0 −1 pgjdbc/src/main/java/org/postgresql/replication/fluent/logical/LogicalReplicationOptions.java
  19. +0 −1 pgjdbc/src/main/java/org/postgresql/replication/fluent/logical/LogicalStreamBuilder.java
  20. +0 −1 pgjdbc/src/main/java/org/postgresql/replication/fluent/logical/StartLogicalReplicationCallback.java
  21. +0 −1 pgjdbc/src/main/java/org/postgresql/replication/fluent/physical/PhysicalCreateSlotBuilder.java
  22. +0 −1 pgjdbc/src/main/java/org/postgresql/replication/fluent/physical/PhysicalStreamBuilder.java
  23. +0 −1 pgjdbc/src/main/java/org/postgresql/util/PGmoney.java
  24. +0 −1 pgjdbc/src/test/java/org/postgresql/replication/LogicalReplicationStatusTest.java
  25. +0 −1 pgjdbc/src/test/java/org/postgresql/replication/LogicalReplicationTest.java
  26. +0 −1 pgjdbc/src/test/java/org/postgresql/replication/ReplicationSlotTest.java
  27. +0 −1 pgjdbc/src/test/java/org/postgresql/test/util/rules/ServerVersionRule.java
@@ -33,7 +33,7 @@
<jdbc.specification.version>4.2</jdbc.specification.version>
<jdbc.specification.version.nodot>42</jdbc.specification.version.nodot>
<skip.assembly>false</skip.assembly>
<checkstyle.version>6.13</checkstyle.version>
<checkstyle.version>7.4</checkstyle.version>
</properties>
<profiles>
@@ -74,11 +74,13 @@
<module name="LeftCurly">
<property name="maxLineLength" value="100"/>
</module>
<module name="RightCurly"/>
<module name="RightCurly">
<property name="tokens" value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_DO"/>
</module>
<module name="RightCurly">
<property name="option" value="alone"/>
<property name="tokens"
value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, LITERAL_DO, STATIC_INIT, INSTANCE_INIT"/>
value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT, INSTANCE_INIT"/>
</module>
<module name="WhitespaceAround">
<property name="allowEmptyConstructors" value="true"/>
@@ -369,7 +369,7 @@
/**
* Configure optimization to enable batch insert re-writing.
*/
REWRITE_BATCHED_INSERTS ("reWriteBatchedInserts", "false",
REWRITE_BATCHED_INSERTS("reWriteBatchedInserts", "false",
"Enable optimization to rewrite and collapse compatible INSERT statements that are batched."),
/**
@@ -5,7 +5,6 @@
package org.postgresql.core.v3;
import org.postgresql.copy.CopyDual;
import org.postgresql.util.PSQLException;
@@ -5,7 +5,6 @@
package org.postgresql.core.v3.replication;
import org.postgresql.copy.CopyDual;
import org.postgresql.core.Logger;
import org.postgresql.replication.LogSequenceNumber;
@@ -5,7 +5,6 @@
package org.postgresql.core.v3.replication;
import org.postgresql.copy.CopyDual;
import org.postgresql.core.Logger;
import org.postgresql.core.PGStream;
@@ -5,7 +5,6 @@
package org.postgresql.jdbc;
import org.postgresql.Driver;
import org.postgresql.core.BaseConnection;
import org.postgresql.core.BaseStatement;
@@ -5,7 +5,6 @@
package org.postgresql.largeobject;
import org.postgresql.core.BaseConnection;
import org.postgresql.fastpath.Fastpath;
import org.postgresql.fastpath.FastpathArg;
@@ -5,7 +5,6 @@
package org.postgresql.replication;
import java.nio.ByteBuffer;
/**
@@ -5,7 +5,6 @@
package org.postgresql.replication;
import org.postgresql.core.BaseConnection;
import org.postgresql.replication.fluent.ChainedCreateReplicationSlotBuilder;
import org.postgresql.replication.fluent.ChainedStreamBuilder;
@@ -5,7 +5,6 @@
package org.postgresql.replication;
import org.postgresql.replication.fluent.CommonOptions;
import org.postgresql.replication.fluent.logical.LogicalReplicationOptions;
@@ -5,7 +5,6 @@
package org.postgresql.replication.fluent;
import org.postgresql.replication.LogSequenceNumber;
import java.util.concurrent.TimeUnit;
@@ -5,7 +5,6 @@
package org.postgresql.replication.fluent;
import org.postgresql.replication.LogSequenceNumber;
import java.util.concurrent.TimeUnit;
@@ -5,7 +5,6 @@
package org.postgresql.replication.fluent;
import org.postgresql.replication.fluent.logical.ChainedLogicalStreamBuilder;
import org.postgresql.replication.fluent.physical.ChainedPhysicalStreamBuilder;
@@ -5,7 +5,6 @@
package org.postgresql.replication.fluent;
import org.postgresql.core.BaseConnection;
import org.postgresql.replication.fluent.logical.ChainedLogicalCreateSlotBuilder;
import org.postgresql.replication.fluent.logical.LogicalCreateSlotBuilder;
@@ -5,7 +5,6 @@
package org.postgresql.replication.fluent;
import org.postgresql.core.BaseConnection;
import org.postgresql.core.ReplicationProtocol;
import org.postgresql.replication.PGReplicationStream;
@@ -5,7 +5,6 @@
package org.postgresql.replication.fluent.logical;
import org.postgresql.replication.PGReplicationStream;
import org.postgresql.replication.fluent.ChainedCommonStreamBuilder;
@@ -5,7 +5,6 @@
package org.postgresql.replication.fluent.logical;
import org.postgresql.replication.fluent.CommonOptions;
import java.util.Properties;
@@ -5,7 +5,6 @@
package org.postgresql.replication.fluent.logical;
import org.postgresql.replication.LogSequenceNumber;
import org.postgresql.replication.PGReplicationStream;
import org.postgresql.replication.fluent.AbstractStreamBuilder;
@@ -5,7 +5,6 @@
package org.postgresql.replication.fluent.logical;
import org.postgresql.replication.PGReplicationStream;
import java.sql.SQLException;
@@ -5,7 +5,6 @@
package org.postgresql.replication.fluent.physical;
import org.postgresql.core.BaseConnection;
import org.postgresql.replication.fluent.AbstractCreateSlotBuilder;
@@ -5,7 +5,6 @@
package org.postgresql.replication.fluent.physical;
import org.postgresql.replication.LogSequenceNumber;
import org.postgresql.replication.PGReplicationStream;
import org.postgresql.replication.fluent.AbstractStreamBuilder;
@@ -6,7 +6,6 @@
package org.postgresql.util;
import java.io.Serializable;
import java.sql.SQLException;
@@ -5,7 +5,6 @@
package org.postgresql.replication;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.IsEqual.equalTo;
@@ -5,7 +5,6 @@
package org.postgresql.replication;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;
@@ -5,7 +5,6 @@
package org.postgresql.replication;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.fail;
@@ -5,7 +5,6 @@
package org.postgresql.test.util.rules;
import org.postgresql.core.ServerVersion;
import org.postgresql.core.Version;
import org.postgresql.jdbc.PgConnection;

0 comments on commit e1a2578

Please sign in to comment.