diff --git a/src/main/java/com/samskivert/depot/impl/FieldMarshaller.java b/src/main/java/com/samskivert/depot/impl/FieldMarshaller.java index a7533c7..9f80e22 100644 --- a/src/main/java/com/samskivert/depot/impl/FieldMarshaller.java +++ b/src/main/java/com/samskivert/depot/impl/FieldMarshaller.java @@ -392,8 +392,9 @@ public abstract class FieldMarshaller protected static Class getTransformerType (Transformer xformer, String which) { Class ttype = null; - for (Method method : xformer.getClass().getDeclaredMethods()) { - if (method.getName().equals(which + "Persistent")) { + String methodName = which + "Persistent"; + for (Method method : xformer.getClass().getMethods()) { + if (method.getName().equals(methodName)) { if (ttype == null || ttype.isAssignableFrom(method.getReturnType())) { ttype = method.getReturnType(); }