Igored checkstyle

This commit is contained in:
Marcin Grzejszczak
2019-08-12 14:53:49 +02:00
parent 3565ef892a
commit 3aa8482f95
8 changed files with 17 additions and 9 deletions

View File

@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package example;
import java.util.Collection;

View File

@@ -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)));
});
});

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -45,4 +45,5 @@
<suppress files=".*HttpHeaders.*" checks=".*"/>
<suppress files=".*HttpMethods.*" checks=".*"/>
<suppress files=".*HttpStatus.*" checks=".*"/>
<suppress files=".*contractsToCompile.*" checks=".*"/>
</suppressions>