Skip to content
Snippets Groups Projects
Verified Commit 44c3341b authored by Fredrik Roubert's avatar Fredrik Roubert
Browse files

ITS#4501 Add @Deprecated annotations to deprecated interface methods.

JDK 1.5 deprecated these interface methods so they should be annotated
as deprecated also in this implementation of that interface.
parent 70b87f22
No related branches found
No related tags found
1 merge request!6ITS#4501 Update code base to Java8.
...@@ -70,6 +70,7 @@ public class JdbcLdapPreparedStatement extends JdbcLdapStatement implements java ...@@ -70,6 +70,7 @@ public class JdbcLdapPreparedStatement extends JdbcLdapStatement implements java
@Deprecated
public void setUnicodeStream(int param, java.io.InputStream inputStream, int param2) throws java.sql.SQLException { public void setUnicodeStream(int param, java.io.InputStream inputStream, int param2) throws java.sql.SQLException {
char[] c = new char[param2]; char[] c = new char[param2];
try { try {
......
...@@ -202,11 +202,13 @@ public class LdapResultSet implements java.sql.ResultSet { ...@@ -202,11 +202,13 @@ public class LdapResultSet implements java.sql.ResultSet {
return new BigDecimal(getByName(str)); return new BigDecimal(getByName(str));
} }
@Deprecated
public java.math.BigDecimal getBigDecimal(int param, int param1) public java.math.BigDecimal getBigDecimal(int param, int param1)
throws java.sql.SQLException { throws java.sql.SQLException {
return new BigDecimal(getByNum(param)); return new BigDecimal(getByNum(param));
} }
@Deprecated
public java.math.BigDecimal getBigDecimal(java.lang.String str, int param) public java.math.BigDecimal getBigDecimal(java.lang.String str, int param)
throws java.sql.SQLException { throws java.sql.SQLException {
return new BigDecimal(getByName(str)); return new BigDecimal(getByName(str));
...@@ -478,11 +480,13 @@ public class LdapResultSet implements java.sql.ResultSet { ...@@ -478,11 +480,13 @@ public class LdapResultSet implements java.sql.ResultSet {
} }
} }
@Deprecated
public java.io.InputStream getUnicodeStream(int param) public java.io.InputStream getUnicodeStream(int param)
throws java.sql.SQLException { throws java.sql.SQLException {
return new ByteArrayInputStream(getByNum(param).getBytes(StandardCharsets.UTF_8)); return new ByteArrayInputStream(getByNum(param).getBytes(StandardCharsets.UTF_8));
} }
@Deprecated
public java.io.InputStream getUnicodeStream(java.lang.String str) public java.io.InputStream getUnicodeStream(java.lang.String str)
throws java.sql.SQLException { throws java.sql.SQLException {
return new ByteArrayInputStream(getByName(str).getBytes(StandardCharsets.UTF_8)); return new ByteArrayInputStream(getByName(str).getBytes(StandardCharsets.UTF_8));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment