[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    svn commit: r760707 -
From:       mbenson () apache ! org
Date:       2009-03-31 22:53:22
Message-ID: 20090331225322.8105C23889BA () eris ! apache ! org
[Download RAW message or body]

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/apa \
che/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;
     }
 
     /**


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic