From 877438dd76e4de8d68260a1d1bee12cd31bd9c06 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Fri, 11 Oct 2013 21:41:37 +0000 Subject: [PATCH] Resolve unused imports git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1531431 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/lang3/reflect/ConstructorUtils.java | 3 +-- .../java/org/apache/commons/lang3/reflect/MethodUtils.java | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/reflect/ConstructorUtils.java b/src/main/java/org/apache/commons/lang3/reflect/ConstructorUtils.java index f980945a2..bfd07abbc 100644 --- a/src/main/java/org/apache/commons/lang3/reflect/ConstructorUtils.java +++ b/src/main/java/org/apache/commons/lang3/reflect/ConstructorUtils.java @@ -16,7 +16,6 @@ */ package org.apache.commons.lang3.reflect; -import java.lang.reflect.AccessibleObject; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Modifier; @@ -37,7 +36,7 @@ import org.apache.commons.lang3.Validate; * invoked.

* *

{@link ConstructorUtils} contains a workaround for this situation: it - * will attempt to call {@link AccessibleObject#setAccessible(boolean)} on this constructor. If this + * will attempt to call {@link java.lang.reflect.AccessibleObject#setAccessible(boolean)} on this constructor. If this * call succeeds, then the method can be invoked as normal. This call will only * succeed when the application has sufficient security privileges. If this call * fails then a warning will be logged and the method may fail.

diff --git a/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java b/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java index 5ac5ee790..722c8583f 100644 --- a/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java +++ b/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java @@ -16,7 +16,6 @@ */ package org.apache.commons.lang3.reflect; -import java.lang.reflect.AccessibleObject; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.lang.reflect.Modifier; @@ -30,8 +29,8 @@ import java.util.Set; import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ClassUtils; -import org.apache.commons.lang3.Validate; import org.apache.commons.lang3.ClassUtils.Interfaces; +import org.apache.commons.lang3.Validate; /** *

Utility reflection methods focused on {@link Method}s, originally from Commons BeanUtils. @@ -46,7 +45,7 @@ import org.apache.commons.lang3.ClassUtils.Interfaces; * However, an {@link IllegalAccessException} is thrown if the method is invoked.

* *

{@link MethodUtils} contains a workaround for this situation. - * It will attempt to call {@link AccessibleObject#setAccessible(boolean)} on this method. + * It will attempt to call {@link java.lang.reflect.AccessibleObject#setAccessible(boolean)} on this method. * If this call succeeds, then the method can be invoked as normal. * This call will only succeed when the application has sufficient security privileges. * If this call fails then the method may fail.