commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r469731 - in /jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils: ConstructorUtils.java PropertyUtilsBean.java
Date Wed, 01 Nov 2006 01:13:09 GMT
Author: bayard
Date: Tue Oct 31 17:13:08 2006
New Revision: 469731

URL: http://svn.apache.org/viewvc?view=rev&rev=469731
Log:
Applied the empty-block-should-be-documented-warning-fix-java.patch from #BEANUTILS-121

Modified:
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConstructorUtils.java
    jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java

Modified: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConstructorUtils.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConstructorUtils.java?view=diff&rev=469731&r1=469730&r2=469731
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConstructorUtils.java
(original)
+++ jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/ConstructorUtils.java
Tue Oct 31 17:13:08 2006
@@ -365,7 +365,9 @@
                 // Better workarounds would be greatfully accepted.
                 //
                 ctor.setAccessible(true);
-            } catch (SecurityException se) {}
+            } catch (SecurityException se) {
+                /* SWALLOW, if workaround fails don't fret. */
+            }
             return ctor;
 
         } catch (NoSuchMethodException e) { /* SWALLOW */
@@ -396,7 +398,11 @@
                     if (ctor != null) {
                         try {
                             ctor.setAccessible(true);
-                        } catch (SecurityException se) {}
+                        } catch (SecurityException se) {
+                            /* Swallow SecurityException
+                             * TODO: Why?
+                             */
+                        }
                         return ctor;
                     }
                 }

Modified: jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java?view=diff&rev=469731&r1=469730&r2=469731
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java
(original)
+++ jakarta/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/PropertyUtilsBean.java
Tue Oct 31 17:13:08 2006
@@ -861,6 +861,9 @@
                 result =
                         new MappedPropertyDescriptor(name, bean.getClass());
             } catch (IntrospectionException ie) {
+                /* Swallow IntrospectionException
+                 * TODO: Why?
+                 */
             }
             if (result != null) {
                 mappedDescriptors.put(name, result);



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


Mime
View raw message