db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/util JdbcTypesHelper.java
Date Fri, 27 Feb 2004 18:16:23 GMT
brj         2004/02/27 10:16:23

  Modified:    src/java/org/apache/ojb/broker/util JdbcTypesHelper.java
  Log:
  fixed minor problems detected by findbugs
  
  Revision  Changes    Path
  1.8       +9 -3      db-ojb/src/java/org/apache/ojb/broker/util/JdbcTypesHelper.java
  
  Index: JdbcTypesHelper.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/JdbcTypesHelper.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- JdbcTypesHelper.java	17 Feb 2004 16:39:34 -0000	1.7
  +++ JdbcTypesHelper.java	27 Feb 2004 18:16:23 -0000	1.8
  @@ -255,6 +255,11 @@
               return result;
           }
   
  +        public int hashCode()
  +        {
  +            return getType();
  +        }
  +        
           public Object getObjectFromColumn(CallableStatement stmt, int columnId) throws
SQLException
           {
               return getObjectFromColumn(null, stmt, null, columnId);
  @@ -1017,8 +1022,9 @@
            */
           protected static String safeClobToString(Clob aClob) throws SQLException {
               long length = aClob.length();
  -            if (length == 0) {
  -                return new String();
  +            if (length == 0)
  +            {
  +                return "";
               }
               StringBuffer sb = new StringBuffer();
               char[] buf = new char[BUFSZ];
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message