Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add disallow multiple empty lines (#1427)
* style: Add allowMultipleEmptyLinesInsideClassMembers set to false Adds a checkstyle rule to disallow multiple back to back empty newlines inside class members.
- Loading branch information
Showing
with
2 additions
and 125 deletions.
- +1 −1 pgjdbc/src/assembly/dist.xml
- +1 −1 pgjdbc/src/main/checkstyle/checks.xml
- +0 −2 pgjdbc/src/main/java/org/postgresql/PGConnection.java
- +0 −1 pgjdbc/src/main/java/org/postgresql/PGStatement.java
- +0 −1 pgjdbc/src/main/java/org/postgresql/core/PGStream.java
- +0 −1 pgjdbc/src/main/java/org/postgresql/core/ParameterList.java
- +0 −5 pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java
- +0 −1 pgjdbc/src/main/java/org/postgresql/core/v3/SimpleParameterList.java
- +0 −1 pgjdbc/src/main/java/org/postgresql/core/v3/replication/V3ReplicationProtocol.java
- +0 −1 pgjdbc/src/main/java/org/postgresql/gss/GssAction.java
- +0 −1 pgjdbc/src/main/java/org/postgresql/gss/MakeGSS.java
- +0 −2 pgjdbc/src/main/java/org/postgresql/jdbc/AbstractBlobClob.java
- +0 −2 pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java
- +0 −16 pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java
- +0 −1 pgjdbc/src/main/java/org/postgresql/jdbc/TimestampUtils.java
- +0 −1 pgjdbc/src/main/java/org/postgresql/ssl/LibPQFactory.java
- +0 −1 pgjdbc/src/main/java/org/postgresql/sspi/SSPIClient.java
- +0 −9 pgjdbc/src/main/java/org/postgresql/util/Base64.java
- +0 −2 pgjdbc/src/main/java/org/postgresql/util/PGtokenizer.java
- +0 −1 pgjdbc/src/main/java/org/postgresql/util/ServerErrorMessage.java
- +0 −3 pgjdbc/src/test/java/org/postgresql/core/ParserTest.java
- +0 −1 pgjdbc/src/test/java/org/postgresql/replication/LogicalReplicationStatusTest.java
- +0 −2 pgjdbc/src/test/java/org/postgresql/replication/LogicalReplicationTest.java
- +0 −1 pgjdbc/src/test/java/org/postgresql/test/TestUtil.java
- +0 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/ArrayTest.java
- +0 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/AutoRollbackTestSuite.java
- +0 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc2/BlobTransactionTest.java
- +0 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/CopyTest.java
- +0 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc2/CursorFetchTest.java
- +0 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/DatabaseEncodingTest.java
- +0 −19 pgjdbc/src/test/java/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java
- +0 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc2/DateTest.java
- +0 −9 pgjdbc/src/test/java/org/postgresql/test/jdbc2/DriverTest.java
- +0 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/IntervalTest.java
- +0 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/RefCursorTest.java
- +0 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc2/ServerPreparedStmtTest.java
- +0 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/StatementTest.java
- +0 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc2/TimeTest.java
- +0 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/TimestampTest.java
- +0 −3 pgjdbc/src/test/java/org/postgresql/test/jdbc2/UpdateableResultTest.java
- +0 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/UpsertTest.java
- +0 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc3/Jdbc3BlobTest.java
- +0 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc3/Jdbc3CallableStatementTest.java
- +0 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc3/SendRecvBufferSizeTest.java
- +0 −3 pgjdbc/src/test/java/org/postgresql/test/jdbc4/DatabaseMetaDataTest.java
- +0 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc42/Jdbc42CallableStatementTest.java
- +0 −6 pgjdbc/src/test/java/org/postgresql/test/jdbc42/PreparedStatementTest.java
- +0 −2 pgjdbc/src/test/java/org/postgresql/test/ssl/SslTest.java
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -40,4 +40,4 @@ | ||
<scope>runtime</scope> | ||
</dependencySet> | ||
</dependencySets> | ||
</assembly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -540,7 +540,6 @@ public void sendStream(InputStream inStream, int remaining) throws IOException { | ||
} | ||
} | ||
|
||
/** | ||
* Flush any pending output to the backend. | ||
* | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -23,7 +23,6 @@ | ||
* @author Oliver Jowett (oliver@opencloud.com) | ||
*/ | ||
public interface ParameterList { | ||
void registerOutParameter(int index, int sqlType) throws SQLException; | ||
|
||
/** | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -477,4 +477,3 @@ public String toString() { | ||
|
||
private int pos = 0; | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -136,5 +136,4 @@ private void configureSocketTimeout(CommonOptions options) throws PSQLException | ||
PSQLState.CONNECTION_UNABLE_TO_CONNECT, ioe); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -1107,7 +1107,6 @@ public LocalTime toLocalTimeBin(byte[] bytes) throws PSQLException { | ||
micros = ByteConverter.int8(bytes, 0); | ||
} | ||
|
||
return LocalTime.ofNanoOfDay(micros * 1000); | ||
} | ||
//#endif | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -111,7 +111,6 @@ private String makeSPN() throws PSQLException { | ||
} | ||
} | ||
|
||
/** | ||
* Respond to an authentication request from the back-end for SSPI authentication (AUTH_REQ_SSPI). | ||
* | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -89,8 +89,6 @@ public int tokenize(String string, char delim) { | ||
} | ||
|
||
// Don't forget the last token ;-) | ||
if (s < string.length()) { | ||
tokens.add(string.substring(s)); | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.