Derby
  1. Derby
  2. DERBY-4876

Deprecation warnings in VTITemplate

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.7.1.1
    • Fix Version/s: 10.7.1.1
    • Component/s: Demos/Scripts
    • Labels:
      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

      1. deprecated.diff
        1 kB
        Knut Anders Hatlen

        Activity

        Hide
        Knut Anders Hatlen added a comment -

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

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

        Committed revision 1029452.

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

          People

          • Assignee:
            Knut Anders Hatlen
            Reporter:
            Knut Anders Hatlen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development