You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mb...@apache.org on 2009/04/01 00:53:22 UTC

svn commit: r760707 - /commons/sandbox/flatfile/trunk/src/main/java/org/apache/commons/flatfile/morph/IndexedEntityCollectionReflector.java

Author: mbenson
Date: Tue Mar 31 22:53:22 2009
New Revision: 760707

URL: http://svn.apache.org/viewvc?rev=760707&view=rev
Log:
make PMD happy

Modified:
    commons/sandbox/flatfile/trunk/src/main/java/org/apache/commons/flatfile/morph/IndexedEntityCollectionReflector.java

Modified: commons/sandbox/flatfile/trunk/src/main/java/org/apache/commons/flatfile/morph/IndexedEntityCollectionReflector.java
URL: http://svn.apache.org/viewvc/commons/sandbox/flatfile/trunk/src/main/java/org/apache/commons/flatfile/morph/IndexedEntityCollectionReflector.java?rev=760707&r1=760706&r2=760707&view=diff
==============================================================================
--- commons/sandbox/flatfile/trunk/src/main/java/org/apache/commons/flatfile/morph/IndexedEntityCollectionReflector.java (original)
+++ commons/sandbox/flatfile/trunk/src/main/java/org/apache/commons/flatfile/morph/IndexedEntityCollectionReflector.java Tue Mar 31 22:53:22 2009
@@ -60,12 +60,10 @@
             return true;
         }
         try {
-            int index = Integer.parseInt(propertyName);
-            return index < getSize(bean);
+            return Integer.parseInt(propertyName) < getSize(bean);
         } catch (Exception e) {
-            // ignore
+            return false;
         }
-        return false;
     }
 
     /**