commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1079417 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/AnnotationUtils.java
Date Tue, 08 Mar 2011 16:24:00 GMT
Author: sebb
Date: Tue Mar  8 16:24:00 2011
New Revision: 1079417

URL: http://svn.apache.org/viewvc?rev=1079417&view=rev
Log:
Fix incorrect Javadoc re thrown exceptions; requires further change to private method

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=1079417&r1=1079416&r2=1079417&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
Tue Mar  8 16:24:00 2011
@@ -152,8 +152,9 @@ public class AnnotationUtils {
      * 
      * @param a the Annotation for a hash code calculation is desired, not null
      * @return the calculated hash code
-     * @throws IllegalAccessException if thrown during annotation access
-     * @throws InvocationTargetException if thrown during annotation access
+     * @throws RuntimeException if IllegalAccessException or InvocationTargetException 
+     * or any other Exception is thrown during annotation access
+     * @throws IllegalStateException if an annotation method invocation returns {@code null}
      */
     public static int hashCode(Annotation a) {
         int result = 0;
@@ -221,8 +222,7 @@ public class AnnotationUtils {
     }
 
     //besides modularity, this has the advantage of autoboxing primitives:
-    private static int hashMember(String name, Object value)
-            throws IllegalAccessException, InvocationTargetException {
+    private static int hashMember(String name, Object value) {
         int part1 = name.hashCode() * 127;
         if (value.getClass().isArray()) {
             return part1 ^ arrayMemberHash(value.getClass().getComponentType(), value);



Mime
View raw message