You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ba...@apache.org on 2011/02/02 06:39:30 UTC

svn commit: r1066330 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/AnnotationUtils.java

Author: bayard
Date: Wed Feb  2 05:39:30 2011
New Revision: 1066330

URL: http://svn.apache.org/viewvc?rev=1066330&view=rev
Log:
Explicitly specifying the Exceptions instead of a catch(Exception)

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/AnnotationUtils.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/AnnotationUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/AnnotationUtils.java?rev=1066330&r1=1066329&r2=1066330&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/AnnotationUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/AnnotationUtils.java Wed Feb  2 05:39:30 2011
@@ -123,7 +123,9 @@ public class AnnotationUtils {
                     }
                 }
             }
-        } catch (Exception e) {
+        } catch (IllegalAccessException e) {
+            return false;
+        } catch (InvocationTargetException e) {
             return false;
         }
         return true;