Skip to content

Commit e85602b

Browse files
committed
refactor: updating to 1.0.3 of integration-res
1 parent fb50e4a commit e85602b

File tree

4 files changed

+5
-30
lines changed

4 files changed

+5
-30
lines changed

build.gradle

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ repositories {
3030
}
3131

3232
dependencies {
33-
api 'com.blackducksoftware.integration:integration-rest:0.13.3'
33+
// This MUST stay in lock step with any $PRODUCT-common you use with this
34+
// --rotte MAR 2020
35+
api 'com.synopsys.integration:integration-rest:1.0.3'
3436

3537
// Unfortunately, without making jenkins-common a fully fledged Jenkins plugin we cannot enforce dependencies on specific Jenkins versions
3638
// or Jenkins plugin versions in Jenkins plugins that depend on this library.

src/main/java/com/synopsys/integration/function/ThrowingConsumer.java

-27
This file was deleted.

src/main/java/com/synopsys/integration/stepworkflow/StepWorkflowResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public <R, E extends Throwable> R handleResponse(final ThrowingFunction<StepWork
5353
}
5454

5555
public <E extends Throwable> void consumeResponse(final ThrowingConsumer<StepWorkflowResponse<T>, E> responseHandler) throws E {
56-
responseHandler.apply(this);
56+
responseHandler.accept(this);
5757
}
5858

5959
public T getDataOrThrowException() throws Exception {

src/main/java/com/synopsys/integration/stepworkflow/SubStep.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static <T, R, E extends Exception> SubStep<T, R> ofFunction(final ThrowingFuncti
5353

5454
static <T, E extends Exception> SubStep<T, Object> ofConsumer(final ThrowingConsumer<T, E> throwingConsumer) {
5555
return previousResponse -> SubStep.defaultExecution(previousResponse.isSuccess() && previousResponse.hasData(), previousResponse, () -> {
56-
throwingConsumer.apply(previousResponse.getData());
56+
throwingConsumer.accept(previousResponse.getData());
5757
return SubStepResponse.SUCCESS();
5858
});
5959
}

0 commit comments

Comments
 (0)