Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-4876

Deprecation warnings in VTITemplate

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.7.1.1
    • 10.7.1.1
    • Demos/Scripts
    • 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

      Attachments

        1. deprecated.diff
          1 kB
          Knut Anders Hatlen

        Activity

          The attached patch adds @deprecated tags in the four methods' javadoc comments. This made the warnings go away.

          knutanders Knut Anders Hatlen added a comment - The attached patch adds @deprecated tags in the four methods' javadoc comments. This made the warnings go away.

          Committed revision 1029452.

          knutanders Knut Anders Hatlen added a comment - Committed revision 1029452.

          People

            knutanders Knut Anders Hatlen
            knutanders Knut Anders Hatlen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: