make internal Def methods private and add basic javadocs

This commit is contained in:
Robert Muir 2016-05-05 03:47:56 -04:00
parent 928e2b904d
commit 59c135b58d
1 changed files with 4 additions and 2 deletions

View File

@ -241,7 +241,8 @@ public class Def {
}
}
public static Method getMethod(final Object owner, final String name, final Definition definition) {
/** Method lookup for owner.name(), returns null if no matching method was found */
private static Method getMethod(final Object owner, final String name, final Definition definition) {
Class<?> clazz = owner.getClass();
while (clazz != null) {
@ -273,7 +274,8 @@ public class Def {
return null;
}
public static Field getField(final Object owner, final String name, final Definition definition) {
/** Field lookup for owner.name, returns null if no matching field was found */
private static Field getField(final Object owner, final String name, final Definition definition) {
Class<?> clazz = owner.getClass();
while (clazz != null) {