commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwaldh...@apache.org
Subject cvs commit: jakarta-commons/dbcp/src/test/org/apache/commons/jocl TestJOCLContentHandler.java
Date Wed, 30 Oct 2002 23:26:59 GMT
rwaldhoff    2002/10/30 15:26:59

  Modified:    dbcp/src/test/org/apache/commons/dbcp TesterResultSet.java
               dbcp/src/test/org/apache/commons/jocl
                        TestJOCLContentHandler.java
  Log:
  fix some eclipse warnings by marking deprecated methods as deprecated, and using a non-deprecated
method in one case
  (note that I don't see a good way to get rid of the remaining deprecation warnings--we intend
to invoke the deprecated methods in those cases)
  
  Revision  Changes    Path
  1.3       +4 -0      jakarta-commons/dbcp/src/test/org/apache/commons/dbcp/TesterResultSet.java
  
  Index: TesterResultSet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/test/org/apache/commons/dbcp/TesterResultSet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TesterResultSet.java	19 Mar 2002 06:05:34 -0000	1.2
  +++ TesterResultSet.java	30 Oct 2002 23:26:59 -0000	1.3
  @@ -71,6 +71,7 @@
           return (double)columnIndex;
       }
   
  +    /** @deprecated */
       public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException {
           checkOpen();
           return new BigDecimal((double)columnIndex);
  @@ -101,6 +102,7 @@
           return null;
       }
   
  +    /** @deprecated */
       public java.io.InputStream getUnicodeStream(int columnIndex) throws SQLException {
           checkOpen();
           return null;
  @@ -151,6 +153,7 @@
           return (double)(columnName.hashCode());
       }
   
  +    /** @deprecated */
       public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException {
           checkOpen();
           return new BigDecimal((double)columnName.hashCode());
  @@ -181,6 +184,7 @@
           return null;
       }
   
  +    /** @deprecated */
       public java.io.InputStream getUnicodeStream(String columnName) throws SQLException
{
           checkOpen();
           return null;
  
  
  
  1.3       +7 -19     jakarta-commons/dbcp/src/test/org/apache/commons/jocl/TestJOCLContentHandler.java
  
  Index: TestJOCLContentHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/test/org/apache/commons/jocl/TestJOCLContentHandler.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestJOCLContentHandler.java	16 Mar 2002 13:29:49 -0000	1.2
  +++ TestJOCLContentHandler.java	30 Oct 2002 23:26:59 -0000	1.3
  @@ -189,21 +189,9 @@
           }
           {
               AttributesImpl attr = new AttributesImpl();
  -            attr.addAttribute("http://apache.org/xml/xmlns/jakarta/commons/jocl","value","value","CDATA","3");
  -            jocl.startElement("http://apache.org/xml/xmlns/jakarta/commons/jocl","int","int",attr);
  -            jocl.endElement("http://apache.org/xml/xmlns/jakarta/commons/jocl","int","int");
  -        }
  -        {
  -            AttributesImpl attr = new AttributesImpl();
  -            attr.addAttribute("http://apache.org/xml/xmlns/jakarta/commons/jocl","value","value","CDATA","4");
  -            jocl.startElement("http://apache.org/xml/xmlns/jakarta/commons/jocl","int","int",attr);
  -            jocl.endElement("http://apache.org/xml/xmlns/jakarta/commons/jocl","int","int");
  -        }
  -        {
  -            AttributesImpl attr = new AttributesImpl();
  -            attr.addAttribute("http://apache.org/xml/xmlns/jakarta/commons/jocl","value","value","CDATA","5");
  -            jocl.startElement("http://apache.org/xml/xmlns/jakarta/commons/jocl","int","int",attr);
  -            jocl.endElement("http://apache.org/xml/xmlns/jakarta/commons/jocl","int","int");
  +            attr.addAttribute("http://apache.org/xml/xmlns/jakarta/commons/jocl","value","value","CDATA","345");
  +            jocl.startElement("http://apache.org/xml/xmlns/jakarta/commons/jocl","long","long",attr);
  +            jocl.endElement("http://apache.org/xml/xmlns/jakarta/commons/jocl","long","long");
           }
           jocl.endElement("http://apache.org/xml/xmlns/jakarta/commons/jocl","object","object");
           jocl.endElement("http://apache.org/xml/xmlns/jakarta/commons/jocl","jocl","jocl");
  @@ -215,6 +203,6 @@
   
           assertTrue(null == jocl.getValue(0));
           assertTrue(null != jocl.getValue(1));
  -        assertEquals(new java.util.Date(3,4,5),jocl.getValue(2));
  +        assertEquals(new java.util.Date(345L),jocl.getValue(2));
       }
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message