Skip to content
Permalink
Browse files

[JENKINS-43507] Explain why SCMSourceTrait retained and SCMNavigatorT…

…rait applied
  • Loading branch information...
stephenc committed Jun 14, 2017
1 parent 5f3fe47 commit e4003a8365e613cba88f6e3cd0e3d379847bf691
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/main/java/jenkins/scm/api/trait/SCMSourceBuilder.java
@@ -51,6 +51,9 @@
* {@code return Collections.unmodifiableList(new ArrayList<>(theList));}
* </li>
* </ul>
* When applying {@link SCMTrait} instances to the builder, the {@link SCMNavigatorTrait} instances will modify the
* builder itself while the {@link SCMSourceTrait} instances will be retained to be added to the {@link SCMSource}
* during {@link #build()}
*
* @param <B> the type of {@link SCMSourceBuilder} so that subclasses can chain correctly in their
* {@link #withTrait(SCMSourceTrait)} etc methods.
@@ -191,7 +194,8 @@ public B withRequest(@NonNull SCMNavigatorRequest request) {
}

/**
* Instantiates the {@link SCMSource}.
* Instantiates the {@link SCMSource}. The implementation is responsible to ensure that the {@link #traits()}
* are provided to the {@link SCMSource}.
*
* @return the {@link S} instance
*/

0 comments on commit e4003a8

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