rsitze      2002/06/10 16:44:13

  Modified:    java/src/org/apache/axis/utils JavaUtils.java
  Log:
  Consolidate non-boolean tests for 'true' (String/Integer) in JavaUtils.
  JavaUtils is getting to be a mess...
  
  Revision  Changes    Path
  1.47      +8 -0      xml-axis/java/src/org/apache/axis/utils/JavaUtils.java
  
  Index: JavaUtils.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/JavaUtils.java,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -r1.46 -r1.47
  --- JavaUtils.java    10 Jun 2002 22:54:50 -0000      1.46
  +++ JavaUtils.java    10 Jun 2002 23:44:12 -0000      1.47
  @@ -926,6 +926,10 @@
           return true;
       }
       
  +    public static final boolean isTrueExplicitly(Object value) {
  +        return isTrueExplicitly(value, false);
  +    }
  +
       /**
        * Tests the Object 'value':
        *   if its null, return default.
  @@ -984,6 +988,10 @@
               return isFalseExplicitly( (String)value );
           }
           return false;
  +    }
  +    
  +    public static final boolean isFalseExplicitly(Object value) {
  +        return isFalseExplicitly(value, true);
       }
   
       /**
  
  
  


Reply via email to