Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-43507] More javadocs
  • Loading branch information
stephenc committed May 4, 2017
1 parent 0069428 commit 4d86d11
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/jenkins/scm/api/trait/SCMSourceTraitDescriptor.java
Expand Up @@ -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();
}
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/jenkins/scm/api/trait/SCMTraitDescriptor.java
Expand Up @@ -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();
}
Expand Down

0 comments on commit 4d86d11

Please sign in to comment.