craigmcc    2003/01/03 12:38:11

  Modified:    beanutils/src/java/org/apache/commons/beanutils
                        BeanUtils.java
  Log:
  Remove a mistakenly leftover debugging message, and properly nest
  some others.
  
  Revision  Changes    Path
  1.34      +13 -8     
jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/BeanUtils.java
  
  Index: BeanUtils.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/BeanUtils.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- BeanUtils.java    3 Jan 2003 20:32:35 -0000       1.33
  +++ BeanUtils.java    3 Jan 2003 20:38:11 -0000       1.34
  @@ -856,21 +856,27 @@
               }
               if (descriptor instanceof MappedPropertyDescriptor) {
                   if (((MappedPropertyDescriptor) descriptor).getMappedWriteMethod() 
== null) {
  -                    log.debug("Skipping read-only property");
  +                    if (log.isDebugEnabled()) {
  +                        log.debug("Skipping read-only property");
  +                    }
                       return; // Read-only, skip this property setter
                   }
                   type = ((MappedPropertyDescriptor) descriptor).
                       getMappedPropertyType();
               } else if (descriptor instanceof IndexedPropertyDescriptor) {
                   if (((IndexedPropertyDescriptor) 
descriptor).getIndexedWriteMethod() == null) {
  -                    log.debug("Skipping read-only property");
  +                    if (log.isDebugEnabled()) {
  +                        log.debug("Skipping read-only property");
  +                    }
                       return; // Read-only, skip this property setter
                   }
                   type = ((IndexedPropertyDescriptor) descriptor).
                       getIndexedPropertyType();
               } else {
                   if (descriptor.getWriteMethod() == null) {
  -                    log.debug("Skipping read-only property");
  +                    if (log.isDebugEnabled()) {
  +                        log.debug("Skipping read-only property");
  +                    }
                       return; // Read-only, skip this property setter
                   }
                   type = descriptor.getPropertyType();
  @@ -880,7 +886,6 @@
           // Convert the specified value to the required type
           Object newValue = null;
           if (type.isArray() && (index < 0)) { // Scalar value into array
  -            log.debug("CONVERTING SCALAR '" + value + "' TO ARRAY");
               if (value == null) {
                   String values[] = new String[1];
                   values[0] = (String) value;
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to