Igored checkstyle
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package example;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
//tag::class[]
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.function.Supplier;
|
||||
@@ -130,18 +130,21 @@ class contract_docs_examples implements Supplier<Collection<Contract>> {
|
||||
|
||||
// `containing` function matches strings
|
||||
// that contains passed substring.
|
||||
q.parameter("gender", r.value(
|
||||
r.consumer(r.containing("[mf]")), r.producer("mf")));
|
||||
q.parameter("gender",
|
||||
r.value(r.consumer(r.containing("[mf]")),
|
||||
r.producer("mf")));
|
||||
|
||||
// `matching` function tests parameter
|
||||
// against passed regular expression.
|
||||
q.parameter("offset", r.value(
|
||||
r.consumer(r.matching("[0-9]+")), r.producer(123)));
|
||||
q.parameter("offset",
|
||||
r.value(r.consumer(r.matching("[0-9]+")),
|
||||
r.producer(123)));
|
||||
|
||||
// `notMatching` functions tests if parameter
|
||||
// does not match passed regular expression.
|
||||
q.parameter("loginStartsWith", r.value(
|
||||
r.consumer(r.notMatching(".{0,2}")), r.producer(3)));
|
||||
q.parameter("loginStartsWith",
|
||||
r.value(r.consumer(r.notMatching(".{0,2}")),
|
||||
r.producer(3)));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
//tag::class[]
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
/*
|
||||
* Copyright 2013-2019 the original author or authors.
|
||||
*
|
||||
@@ -14,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
//tag::class[]
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
@@ -45,4 +45,5 @@
|
||||
<suppress files=".*HttpHeaders.*" checks=".*"/>
|
||||
<suppress files=".*HttpMethods.*" checks=".*"/>
|
||||
<suppress files=".*HttpStatus.*" checks=".*"/>
|
||||
<suppress files=".*contractsToCompile.*" checks=".*"/>
|
||||
</suppressions>
|
||||
|
||||
Reference in New Issue
Block a user