commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r1066330 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/AnnotationUtils.java
Date Wed, 02 Feb 2011 05:39:30 GMT
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;



Mime
View raw message