/** * {@inheritDoc} */ @Override protected void decorateBuilder(SCMBuilder<?,?> builder) { ((GitSCMBuilder<?>) builder).withExtension(extension); } }
/** * {@inheritDoc} */ @Override protected void decorateBuilder(SCMBuilder<?, ?> builder) { // this next should be strictly not necessary, but we add it anyway just to be safe ((GitSCMBuilder<?>) builder).withExtension(new IgnoreNotifyCommit()); }
/** * Adds (or redefines) the supplied {@link GitSCMExtension}s. * * @param extensions the {@link GitSCMExtension}s. * @return {@code this} for method chaining. */ @SuppressWarnings("unchecked") @NonNull public final B withExtensions(@NonNull List<GitSCMExtension> extensions) { for (GitSCMExtension extension : extensions) { withExtension(extension); } return (B) this; }