Minor polishing.
This commit is contained in:
parent
68dc38841f
commit
e462c5a201
|
@ -74,12 +74,12 @@ public class NamedEntityObjectIdentity implements AclObjectIdentity {
|
||||||
Class clazz = object.getClass();
|
Class clazz = object.getClass();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Method id = clazz.getMethod("getId", null);
|
Method method = clazz.getMethod("getId", null);
|
||||||
Object result = id.invoke(object, null);
|
Object result = method.invoke(object, null);
|
||||||
this.id = result.toString();
|
this.id = result.toString();
|
||||||
} catch (NoSuchMethodException nsme) {
|
} catch (NoSuchMethodException nsme) {
|
||||||
throw new IllegalArgumentException(
|
throw new IllegalArgumentException("Object of class '" + clazz
|
||||||
"object does not provide a getId() method");
|
+ "' does not provide the required getId() method: " + object);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue