From 11ab77be7740b0b4aacbe1f5930d3a4cea424ccb Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Tue, 20 May 2014 10:25:24 -0700 Subject: [PATCH] polish --- .../springsource/loaded/ri/GetMethodsLookup.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/springloaded/src/main/java/org/springsource/loaded/ri/GetMethodsLookup.java b/springloaded/src/main/java/org/springsource/loaded/ri/GetMethodsLookup.java index 898bb00..5328da8 100644 --- a/springloaded/src/main/java/org/springsource/loaded/ri/GetMethodsLookup.java +++ b/springloaded/src/main/java/org/springsource/loaded/ri/GetMethodsLookup.java @@ -23,7 +23,6 @@ import java.util.Map; /** * @author Kris De Volder * @since 0.5.0 - * */ public class GetMethodsLookup { @@ -37,25 +36,25 @@ public class GetMethodsLookup { * Collect all public methods from methodProvider and its supertypes into the 'found' hasmap, indexed by "name+descriptor". */ private void collectAll(MethodProvider methodProvider, Map found) { - //We do this in inverse order as in 'GetMethodLookup'. This is because GetMethodLookup - //is lazy and wants to stop when a method is found, but here we instead collect - //verything bottom up and 'overwrite' earlier results so the last one found is the - //one kept. + // We do this in inverse order as in 'GetMethodLookup'. This is because GetMethodLookup + // is lazy and wants to stop when a method is found, but here we instead collect + // everything bottom up and 'overwrite' earlier results so the last one found is the + // one kept. - //First interfaces in inverse order... + // First interfaces in inverse order... MethodProvider[] itfs = methodProvider.getInterfaces(); for (int i = itfs.length - 1; i >= 0; i--) { // inverse order collectAll(itfs[i], found); } - //Then the superclass(es), but only if we're not an interface (interfaces do not report + // Then the superclass(es), but only if we're not an interface (interfaces do not report // the methods of Object! MethodProvider supr = methodProvider.getSuper(); if (supr != null && !methodProvider.isInterface()) { collectAll(supr, found); } - //Finally all our own public methods + // Finally all our own public methods for (Invoker method : methodProvider.getDeclaredMethods()) { if (Modifier.isPublic(method.getModifiers())) { found.put(method.getName() + method.getMethodDescriptor(), method);