diff --git a/src/main/java/org/apache/commons/lang3/ClassUtils.java b/src/main/java/org/apache/commons/lang3/ClassUtils.java index c15636ed9..940cc82b2 100644 --- a/src/main/java/org/apache/commons/lang3/ClassUtils.java +++ b/src/main/java/org/apache/commons/lang3/ClassUtils.java @@ -1140,8 +1140,8 @@ public class ClassUtils { * Get an {@link Iterable} that can iterate over a class hierarchy in ascending (subclass to superclass) order, * excluding interfaces. * - * @param type - * @return Iterable + * @param type the type to get the class hierarchy from + * @return Iterable an Iterable over the class hierarchy of the given class */ public static Iterable> hierarchy(final Class type) { return hierarchy(type, Interfaces.EXCLUDE); @@ -1150,9 +1150,9 @@ public class ClassUtils { /** * Get an {@link Iterable} that can iterate over a class hierarchy in ascending (subclass to superclass) order. * - * @param type - * @param interfacesBehavior - * @return Iterable + * @param type the type to get the class hierarchy from + * @param interfacesBehavior switch indicating whether to include or exclude interfaces + * @return Iterable an Iterable over the class hierarchy of the given class */ public static Iterable> hierarchy(final Class type, Interfaces interfacesBehavior) { final Iterable> classes = new Iterable>() {