Skip to content

Commit

Permalink
Cosmetic change
Browse files Browse the repository at this point in the history
  • Loading branch information
kohsuke committed Nov 16, 2011
1 parent da0f526 commit a9be16e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions core/src/main/java/hudson/ExtensionFinder.java
Expand Up @@ -108,7 +108,7 @@ public boolean isRefreshable() {
* <p>
* The behaviour is undefined if {@link #isRefreshable()} is returning false.
*
* @since 1.DynamicExtensionFinder.
* @since 1.DynamicExtensionFinder
* @see #isRefreshable()
* @return never null
*/
Expand All @@ -130,14 +130,14 @@ public boolean isRefreshable() {
* 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 <T> Collection<ExtensionComponent<T>> find(Class<T> type, Hudson hudson);
public abstract <T> Collection<ExtensionComponent<T>> find(Class<T> type, Hudson jenkins);

/**
* A pointless function to work around what appears to be a HotSpot problem. See JENKINS-5756 and bug 6933067
Expand Down Expand Up @@ -320,7 +320,7 @@ private Object instantiate(IndexItem<T,Object> item) {
return null;
}

public <U> Collection<ExtensionComponent<U>> find(Class<U> type, Hudson hudson) {
public <U> Collection<ExtensionComponent<U>> find(Class<U> type, Hudson jenkins) {
// the find method contract requires us to traverse all known components
List<ExtensionComponent<U>> result = new ArrayList<ExtensionComponent<U>>();
for (Injector i=container; i!=null; i=i.getParent()) {
Expand Down Expand Up @@ -532,7 +532,7 @@ static <T extends Annotation> List<IndexItem<T, Object>> listDelta(Class<T> anno
return delta;
}

public <T> Collection<ExtensionComponent<T>> find(Class<T> type, Hudson hudson) {
public <T> Collection<ExtensionComponent<T>> find(Class<T> type, Hudson jenkins) {
return _find(type,getIndices());
}

Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/hudson/cli/declarative/CLIRegisterer.java
Expand Up @@ -72,9 +72,9 @@ public ExtensionComponentSet refresh() throws ExtensionRefreshException {
return ExtensionComponentSet.EMPTY;
}

public <T> Collection<ExtensionComponent<T>> find(Class<T> type, Hudson hudson) {
public <T> Collection<ExtensionComponent<T>> find(Class<T> type, Hudson jenkins) {
if (type==CLICommand.class)
return (List)discover(hudson);
return (List)discover(jenkins);
else
return Collections.emptyList();
}
Expand Down

0 comments on commit a9be16e

Please sign in to comment.