db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/util BrokerHelper.java
Date Thu, 17 Jun 2004 20:30:12 GMT
arminw      2004/06/17 13:30:12

  Modified:    src/java/org/apache/ojb/broker/util BrokerHelper.java
  Log:
  remove redundant if-else
  
  Revision  Changes    Path
  1.54      +2 -6      db-ojb/src/java/org/apache/ojb/broker/util/BrokerHelper.java
  
  Index: BrokerHelper.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/BrokerHelper.java,v
  retrieving revision 1.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- BrokerHelper.java	17 Jun 2004 20:25:54 -0000	1.53
  +++ BrokerHelper.java	17 Jun 2004 20:30:12 -0000	1.54
  @@ -260,11 +260,7 @@
               a primitve java field with value 0, thus we return always 'false' in this case.
               (If the value object is null, the first check above return true)
               */
  -            if (type == null)
  -            {
  -                result = false;
  -            }
  -            else
  +            if(type != null)
               {
                   result = type.isPrimitive();
               }
  
  
  

---------------------------------------------------------------------
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