Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
10.7.1.1
-
None
Description
I see four deprecation warnings in java/demo/vtis/..../VTITemplate.java when I run "ant -q all".
[javac] /code/derby/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/VTITemplate.java:354: warning: [deprecation] getUnicodeStream(java.lang.String) in java.sql.ResultSet has been deprecated
[javac] public java.io.InputStream getUnicodeStream(String columnName) throws SQLException {
[javac] ^
[javac] /code/derby/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/VTITemplate.java:300: warning: [deprecation] getBigDecimal(java.lang.String,int) in java.sql.ResultSet has been deprecated
[javac] public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException {
[javac] ^
[javac] /code/derby/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/VTITemplate.java:209: warning: [deprecation] getUnicodeStream(int) in java.sql.ResultSet has been deprecated
[javac] public java.io.InputStream getUnicodeStream(int columnIndex) throws SQLException {
[javac] ^
[javac] /code/derby/trunk/java/demo/vtis/java/org/apache/derbyDemo/vtis/core/VTITemplate.java:155: warning: [deprecation] getBigDecimal(int,int) in java.sql.ResultSet has been deprecated
[javac] public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException {
[javac] ^
[javac] 4 warnings
The attached patch adds @deprecated tags in the four methods' javadoc comments. This made the warnings go away.