Fix incorrect Javadoc re thrown exceptions; requires further change to private method

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1079417 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2011-03-08 16:24:00 +00:00
parent 339558e885
commit 685075984b
1 changed files with 4 additions and 4 deletions

View File

@ -152,8 +152,9 @@ && isValidAnnotationMemberType(m.getReturnType())) {
*
* @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 static boolean isValidAnnotationMemberType(Class<?> type) {
}
//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);