Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed Jan 18, 2010
1 parent 39a44b4 commit 360675a
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -58,11 +58,11 @@ private AccessibleObject[] grantAccess(AccessibleObject[] objects) {
for (AccessibleObject object : objects)
{
if (object instanceof Field) {
SecureReflections.ensureFieldAccessible((Field) object);
SecureReflections.ensureAccessible((Field) object);
} else if (object instanceof Method) {
SecureReflections.ensureMethodAccessible((Method) object);
SecureReflections.ensureAccessible((Method) object);
} else if (object instanceof Constructor<?>) {
SecureReflections.ensureConstructorAccessible((Constructor<?>)object);
SecureReflections.ensureAccessible((Constructor<?>)object);
}
}
return objects;
Expand Down

0 comments on commit 360675a

Please sign in to comment.