Skip to content
Permalink
Browse files

[JENKINS-43507] More javadocs

  • Loading branch information...
stephenc committed May 3, 2017
1 parent 0069428 commit 4d86d1162fa50e6ba2ee8f665e627e186c5d05ae
@@ -36,10 +36,20 @@
*/
public abstract class SCMSourceTraitDescriptor extends SCMTraitDescriptor<SCMSourceTrait> {

/**
* Constructor to use when type inferrence using {@link #SCMSourceTraitDescriptor()} does not work.
*
* @param clazz Pass in the type of {@link SCMTrait}
*/
protected SCMSourceTraitDescriptor(Class<? extends SCMSourceTrait> clazz) {
super(clazz);
}

/**
* Infers the type of the corresponding {@link SCMSourceTrait} from the outer class.
* This version works when you follow the common convention, where a descriptor
* is written as the static nested class of the describable class.
*/
protected SCMSourceTraitDescriptor() {
super();
}
@@ -36,10 +36,20 @@
*/
public abstract class SCMTraitDescriptor<T extends SCMTrait<T>> extends Descriptor<T> {

/**
* Constructor to use when type inferrence using {@link #SCMTraitDescriptor()} does not work.
*
* @param clazz Pass in the type of {@link SCMTrait}
*/
protected SCMTraitDescriptor(Class<? extends T> clazz) {
super(clazz);
}

/**
* Infers the type of the corresponding {@link SCMTrait} from the outer class.
* This version works when you follow the common convention, where a descriptor
* is written as the static nested class of the describable class.
*/
protected SCMTraitDescriptor() {
super();
}

0 comments on commit 4d86d11

Please sign in to comment.
You can’t perform that action at this time.