diff --git a/core/src/main/java/hudson/model/Hudson.java b/core/src/main/java/hudson/model/Hudson.java index c1b81dd828..b5d3b0dcdb 100644 --- a/core/src/main/java/hudson/model/Hudson.java +++ b/core/src/main/java/hudson/model/Hudson.java @@ -700,6 +700,12 @@ public final class Hudson extends Node implements ItemGroup, Stapl return null; } + /** + * Gets the {@link Descriptor} that corresponds to the given {@link Describable} type. + *

+ * If you have an instance of {@code type} and call {@link Describable#getDescriptor()}, + * you'll get the same instance that this method returns. + */ public Descriptor getDescriptor(Class type) { for( Descriptor d : getExtensionList(Descriptor.class) ) if(d.clazz==type)