diff --git a/core/src/main/java/jenkins/model/DetailFactory.java b/core/src/main/java/jenkins/model/DetailFactory.java index 9e6cfa4cc819..c9cfb69eea56 100644 --- a/core/src/main/java/jenkins/model/DetailFactory.java +++ b/core/src/main/java/jenkins/model/DetailFactory.java @@ -30,9 +30,16 @@ import java.util.ArrayList; import java.util.Collection; import java.util.List; + +import hudson.model.Actionable; import org.kohsuke.accmod.Restricted; import org.kohsuke.accmod.restrictions.NoExternalUse; +/** + * Allows you to add multiple details to a Run at once. + * @param the type of object to add to; typically an {@link Actionable} subtype + * @since TODO + */ public abstract class DetailFactory implements ExtensionPoint { public abstract Class type(); @@ -42,7 +49,7 @@ public abstract class DetailFactory implements ExtensionPoint { @Restricted(NoExternalUse.class) public static Iterable> factoriesFor(Class type) { List> result = new ArrayList<>(); - for (DetailFactory wf : ExtensionList.lookup(DetailFactory.class)) { + for (DetailFactory wf : ExtensionList.lookup(DetailFactory.class)) { if (wf.type().isAssignableFrom(type)) { result.add(wf); }