diff --git a/src/main/java/org/takes/facets/auth/codecs/CcStrict.java b/src/main/java/org/takes/facets/auth/codecs/CcStrict.java index f74a23533..24cf10ee8 100644 --- a/src/main/java/org/takes/facets/auth/codecs/CcStrict.java +++ b/src/main/java/org/takes/facets/auth/codecs/CcStrict.java @@ -39,7 +39,6 @@ public final class CcStrict implements Codec { * URN matching pattern. */ private static final Pattern PTN = Pattern.compile( - // @checkstyle LineLength (1 line) "^(?i)^urn(?-i):[a-zA-Z0-9]([\\-a-zA-Z0-9]{1,31})(:([\\-a-zA-Z0-9/]|%[0-9a-fA-F]{2})*)+(\\?\\w+(=([\\-a-zA-Z0-9/]|%[0-9a-fA-F]{2})*)?(&\\w+(=([\\-a-zA-Z0-9/]|%[0-9a-fA-F]{2})*)?)*)?\\*?$" ); diff --git a/src/main/java/org/takes/facets/auth/social/PsGoogle.java b/src/main/java/org/takes/facets/auth/social/PsGoogle.java index 08aaef81f..3b776c02b 100644 --- a/src/main/java/org/takes/facets/auth/social/PsGoogle.java +++ b/src/main/java/org/takes/facets/auth/social/PsGoogle.java @@ -169,7 +169,6 @@ public Response exit(final Response response, * @throws IOException If fails */ private Identity fetch(final String token) throws IOException { - // @checkstyle LineLength (1 line) final String uri = new Href(this.gapi).path("plus").path("v1") .path("people") .path("me") diff --git a/src/main/java/org/takes/facets/auth/social/PsLinkedin.java b/src/main/java/org/takes/facets/auth/social/PsLinkedin.java index a2a2eeca2..3015494d1 100644 --- a/src/main/java/org/takes/facets/auth/social/PsLinkedin.java +++ b/src/main/java/org/takes/facets/auth/social/PsLinkedin.java @@ -85,7 +85,6 @@ public final class PsLinkedin implements Pass { public PsLinkedin(final String lapp, final String lkey) { this( new Href("https://www.linkedin.com/uas/oauth2/accessToken"), - // @checkstyle LineLength (1 line) new Href("https://api.linkedin.com/v1/people/~:(id,first-name,last-name,picture-url)"), lapp, lkey @@ -137,7 +136,6 @@ public Response exit(final Response response, * @throws IOException If fails */ private Identity fetch(final String token) throws IOException { - // @checkstyle LineLength (1 line) final String uri = this.apihref .with("oauth2_access_token", token) .with("format", "json") diff --git a/src/main/java/org/takes/http/MainRemote.java b/src/main/java/org/takes/http/MainRemote.java index 5ccc5f0fc..65482ee45 100644 --- a/src/main/java/org/takes/http/MainRemote.java +++ b/src/main/java/org/takes/http/MainRemote.java @@ -86,7 +86,6 @@ public void exec(final MainRemote.Script script) throws Exception { if (!file.delete()) { throw new IOException( String.format( - // @checkstyle LineLength (1 line) "The temporary file '%s' could not be deleted before calling the exec method", file.getAbsolutePath() ) @@ -116,7 +115,6 @@ public void exec(final MainRemote.Script script) throws Exception { ex.addSuppressed( new IOException( String.format( - // @checkstyle LineLength (1 line) "The temporary file '%s' could not be deleted while catching the error", file.getAbsolutePath() ) @@ -130,7 +128,6 @@ public void exec(final MainRemote.Script script) throws Exception { if (!file.delete()) { throw new IOException( String.format( - // @checkstyle LineLength (1 line) "The temporary file '%s' could not be deleted after calling the exec method", file.getAbsolutePath() ) diff --git a/src/main/java/org/takes/rq/multipart/RqMtBase.java b/src/main/java/org/takes/rq/multipart/RqMtBase.java index e04f6cb0f..1150e10a7 100644 --- a/src/main/java/org/takes/rq/multipart/RqMtBase.java +++ b/src/main/java/org/takes/rq/multipart/RqMtBase.java @@ -204,7 +204,6 @@ private Map> requests( throw new HttpException( HttpURLConnection.HTTP_BAD_REQUEST, String.format( - // @checkstyle LineLength (1 line) "RqMtBase can only parse multipart/form-data, while Content-Type specifies a different type: \"%s\"", header ) diff --git a/src/main/java/org/takes/rs/RsPrint.java b/src/main/java/org/takes/rs/RsPrint.java index dbd1bc290..61a964c2c 100644 --- a/src/main/java/org/takes/rs/RsPrint.java +++ b/src/main/java/org/takes/rs/RsPrint.java @@ -133,7 +133,6 @@ public void printHead(final OutputStream output) throws IOException { if (pos == 0 && !RsPrint.FIRST.matcher(line).matches()) { throw new IllegalArgumentException( String.format( - // @checkstyle LineLength (1 line) "first line of HTTP response \"%s\" doesn't match \"%s\" regular expression, but it should, according to RFC 7230", line, RsPrint.FIRST ) @@ -142,7 +141,6 @@ public void printHead(final OutputStream output) throws IOException { if (pos > 0 && !RsPrint.OTHERS.matcher(line).matches()) { throw new IllegalArgumentException( String.format( - // @checkstyle LineLength (1 line) "header line #%d of HTTP response \"%s\" doesn't match \"%s\" regular expression, but it should, according to RFC 7230", pos + 1, line, RsPrint.OTHERS ) diff --git a/src/main/java/org/takes/rs/RsWithHeader.java b/src/main/java/org/takes/rs/RsWithHeader.java index cc1c9fbdb..300986a08 100644 --- a/src/main/java/org/takes/rs/RsWithHeader.java +++ b/src/main/java/org/takes/rs/RsWithHeader.java @@ -118,7 +118,6 @@ private static Iterable extend(final Iterable head, if (!RsWithHeader.HEADER.matcher(header).matches()) { throw new IllegalArgumentException( String.format( - // @checkstyle LineLength (1 line) "header line of HTTP response \"%s\" doesn't match \"%s\" regular expression, but it should, according to RFC 7230", header, RsWithHeader.HEADER ) diff --git a/src/main/java/org/takes/rs/RsWithStatus.java b/src/main/java/org/takes/rs/RsWithStatus.java index 2aba9833f..a92b32914 100644 --- a/src/main/java/org/takes/rs/RsWithStatus.java +++ b/src/main/java/org/takes/rs/RsWithStatus.java @@ -103,7 +103,6 @@ private static Iterable head(final Response origin, if (status < 100 || status > 999) { throw new IllegalArgumentException( String.format( - // @checkstyle LineLength (1 line) "according to RFC 7230 HTTP status code must have three digits: %d", status ) diff --git a/src/main/java/org/takes/rs/xe/RsXembly.java b/src/main/java/org/takes/rs/xe/RsXembly.java index 54d11f694..7490b9a8c 100644 --- a/src/main/java/org/takes/rs/xe/RsXembly.java +++ b/src/main/java/org/takes/rs/xe/RsXembly.java @@ -158,7 +158,6 @@ private static Document emptyDocument() { .newDocument(); } catch (final ParserConfigurationException ex) { throw new IllegalStateException( - // @checkstyle LineLength (1 line) "Could not instantiate DocumentBuilderFactory and build empty Document", ex ); diff --git a/src/test/java/org/takes/facets/auth/signatures/SiHmacTest.java b/src/test/java/org/takes/facets/auth/signatures/SiHmacTest.java index 983ee8a3b..35c0feb10 100644 --- a/src/test/java/org/takes/facets/auth/signatures/SiHmacTest.java +++ b/src/test/java/org/takes/facets/auth/signatures/SiHmacTest.java @@ -59,7 +59,6 @@ void signs() throws IOException { ) ), new IsEqual<>( - // @checkstyle LineLength (1 line) "f7bc83f430538424b13298e6aa6fb143ef4d59a14946175997479dbc2d1a3cd8" ) ).affirm(); diff --git a/src/test/java/org/takes/misc/HrefTest.java b/src/test/java/org/takes/misc/HrefTest.java index 696937a99..98ffea12f 100644 --- a/src/test/java/org/takes/misc/HrefTest.java +++ b/src/test/java/org/takes/misc/HrefTest.java @@ -137,7 +137,6 @@ void acceptsEncodedQuery() { @Test void acceptsNonProperlyEncodedUrl() { MatcherAssert.assertThat( - // @checkstyle LineLength (2 lines) new Href("http://www.netbout.com/[foo/bar]/read?file=%5B%5D%28%29.txt").toString(), Matchers.equalTo("http://www.netbout.com/%5Bfoo/bar%5D/read?file=%5B%5D%28%29.txt") );