diff --git a/core/src/main/java/hudson/ExtensionFinder.java b/core/src/main/java/hudson/ExtensionFinder.java index 9ac27f9892f724806d36a7e7dabf29e3f0784f2a..b91b5c01f85a9f60b71dd583badc376c9c50d82e 100644 --- a/core/src/main/java/hudson/ExtensionFinder.java +++ b/core/src/main/java/hudson/ExtensionFinder.java @@ -108,7 +108,7 @@ public abstract class ExtensionFinder implements ExtensionPoint { *

* The behaviour is undefined if {@link #isRefreshable()} is returning false. * - * @since 1.DynamicExtensionFinder. + * @since 1.DynamicExtensionFinder * @see #isRefreshable() * @return never null */ @@ -130,14 +130,14 @@ public abstract class ExtensionFinder implements ExtensionPoint { * The type of the extension points. This is not bound to {@link ExtensionPoint} because * of {@link Descriptor}, which by itself doesn't implement {@link ExtensionPoint} for * a historical reason. - * @param hudson - * Hudson whose behalf this extension finder is performing lookup. + * @param jenkins + * Jenkins whose behalf this extension finder is performing lookup. * @return * Can be empty but never null. * @since 1.356 * Older implementations provide {@link #findExtensions(Class,Hudson)} */ - public abstract Collection> find(Class type, Hudson hudson); + public abstract Collection> find(Class type, Hudson jenkins); /** * A pointless function to work around what appears to be a HotSpot problem. See JENKINS-5756 and bug 6933067 @@ -320,7 +320,7 @@ public abstract class ExtensionFinder implements ExtensionPoint { return null; } - public Collection> find(Class type, Hudson hudson) { + public Collection> find(Class type, Hudson jenkins) { // the find method contract requires us to traverse all known components List> result = new ArrayList>(); for (Injector i=container; i!=null; i=i.getParent()) { @@ -532,7 +532,7 @@ public abstract class ExtensionFinder implements ExtensionPoint { return delta; } - public Collection> find(Class type, Hudson hudson) { + public Collection> find(Class type, Hudson jenkins) { return _find(type,getIndices()); } diff --git a/core/src/main/java/hudson/cli/declarative/CLIRegisterer.java b/core/src/main/java/hudson/cli/declarative/CLIRegisterer.java index fde6c095eb1dff5a088aa81d6512c1703a412e1e..c7908ea199c2b388e225cf68f82e7fac5cde572c 100644 --- a/core/src/main/java/hudson/cli/declarative/CLIRegisterer.java +++ b/core/src/main/java/hudson/cli/declarative/CLIRegisterer.java @@ -72,9 +72,9 @@ public class CLIRegisterer extends ExtensionFinder { return ExtensionComponentSet.EMPTY; } - public Collection> find(Class type, Hudson hudson) { + public Collection> find(Class type, Hudson jenkins) { if (type==CLICommand.class) - return (List)discover(hudson); + return (List)discover(jenkins); else return Collections.emptyList(); }