From 4872c9a14f1043f87e001d96b76d5b83391d3aed Mon Sep 17 00:00:00 2001 From: abialas Date: Sat, 11 Jan 2020 12:29:58 +0100 Subject: [PATCH] Remove deprecated and fix wrong javadoc on bodyMatchers - they replaced testMatchers and are not deprecated (#1306) --- .../cloud/contract/spec/internal/OutputMessage.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/specs/spring-cloud-contract-spec-java/src/main/java/org/springframework/cloud/contract/spec/internal/OutputMessage.java b/specs/spring-cloud-contract-spec-java/src/main/java/org/springframework/cloud/contract/spec/internal/OutputMessage.java index dad2cde38a..0d51ffeae9 100644 --- a/specs/spring-cloud-contract-spec-java/src/main/java/org/springframework/cloud/contract/spec/internal/OutputMessage.java +++ b/specs/spring-cloud-contract-spec-java/src/main/java/org/springframework/cloud/contract/spec/internal/OutputMessage.java @@ -314,10 +314,7 @@ public class OutputMessage extends Common /** * The stub matchers part of the contract. * @param consumer function to manipulate the body matchers - * @deprecated Deprecated in favor of bodyMatchers to support other future - * bodyMatchers too */ - @Deprecated public void bodyMatchers(Consumer consumer) { this.bodyMatchers = new ResponseBodyMatchers(); consumer.accept(this.bodyMatchers); @@ -348,10 +345,7 @@ public class OutputMessage extends Common /** * The stub matchers part of the contract. * @param consumer function to manipulate the body matchers - * @deprecated Deprecated in favor of bodyMatchers to support other future - * bodyMatchers too */ - @Deprecated public void bodyMatchers(@DelegatesTo(ResponseBodyMatchers.class) Closure consumer) { this.bodyMatchers = new ResponseBodyMatchers(); consumer.setDelegate(this.bodyMatchers);