Minor polishing.

This commit is contained in:
Ben Alex 2004-11-15 01:36:41 +00:00
parent 68dc38841f
commit e462c5a201
1 changed files with 4 additions and 4 deletions

View File

@ -74,12 +74,12 @@ public class NamedEntityObjectIdentity implements AclObjectIdentity {
Class clazz = object.getClass();
try {
Method id = clazz.getMethod("getId", null);
Object result = id.invoke(object, null);
Method method = clazz.getMethod("getId", null);
Object result = method.invoke(object, null);
this.id = result.toString();
} catch (NoSuchMethodException nsme) {
throw new IllegalArgumentException(
"object does not provide a getId() method");
throw new IllegalArgumentException("Object of class '" + clazz
+ "' does not provide the required getId() method: " + object);
}
}