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

refactor: add MissingDeprecated into checkstyle #1019

Merged
merged 2 commits into from Nov 27, 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
1 change: 1 addition & 0 deletions pgjdbc/src/main/checkstyle/checks.xml
Expand Up @@ -91,6 +91,7 @@
value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
</module>
<module name="OneStatementPerLine"/>
<module name="MissingDeprecated"/>
<module name="MultipleVariableDeclarations"/>
<module name="ArrayTypeStyle"/>
<!--<module name="MissingSwitchDefault"/>-->
Expand Down
1 change: 1 addition & 0 deletions pgjdbc/src/main/java/org/postgresql/PGConnection.java
Expand Up @@ -83,6 +83,7 @@ public interface PGConnection {
* does not work correctly for registering classes that cannot be directly loaded by
* the JDBC driver's classloader.
*/
@Deprecated
void addDataType(String type, String className);

/**
Expand Down
2 changes: 2 additions & 0 deletions pgjdbc/src/main/java/org/postgresql/PGRefCursorResultSet.java
Expand Up @@ -12,12 +12,14 @@
* code should call getString() on the ResultSet that contains the refcursor to obtain
* the underlying cursor name.
*/
@Deprecated
public interface PGRefCursorResultSet {

/**
* @return the name of the cursor.
* @deprecated As of 8.0, replaced with calling getString() on the ResultSet that this ResultSet
* was obtained from.
*/
@Deprecated
String getRefCursor();
}
1 change: 1 addition & 0 deletions pgjdbc/src/main/java/org/postgresql/PGStatement.java
Expand Up @@ -43,6 +43,7 @@ public interface PGStatement {
* @since 7.3
* @deprecated As of build 302, replaced by {@link #setPrepareThreshold(int)}
*/
@Deprecated
void setUseServerPrepare(boolean flag) throws SQLException;

/**
Expand Down
Expand Up @@ -141,6 +141,7 @@ public LargeObject copy() throws SQLException {
* @return the OID of this LargeObject
* @deprecated As of 8.3, replaced by {@link #getLongOID()}
*/
@Deprecated
public int getOID() {
return (int) oid;
}
Expand Down