Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-43507] Explain why SCMSourceTrait retained and SCMNavigatorT…
…rait applied
  • Loading branch information
stephenc committed Jun 14, 2017
1 parent 5f3fe47 commit e4003a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/jenkins/scm/api/trait/SCMSourceBuilder.java
Expand Up @@ -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.
Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit e4003a8

Please sign in to comment.