Skip to content

Commit

Permalink
#1139 LineLength removed
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Aug 10, 2022
1 parent 8db41a2 commit e743ff9
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion src/main/java/org/takes/facets/auth/codecs/CcStrict.java
Expand Up @@ -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})*)?)*)?\\*?$"
);

Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/takes/facets/auth/social/PsGoogle.java
Expand Up @@ -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")
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/org/takes/facets/auth/social/PsLinkedin.java
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/org/takes/http/MainRemote.java
Expand Up @@ -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()
)
Expand Down Expand Up @@ -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()
)
Expand All @@ -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()
)
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/takes/rq/multipart/RqMtBase.java
Expand Up @@ -204,7 +204,6 @@ private Map<String, List<Request>> 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
)
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/org/takes/rs/RsPrint.java
Expand Up @@ -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
)
Expand All @@ -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
)
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/takes/rs/RsWithHeader.java
Expand Up @@ -118,7 +118,6 @@ private static Iterable<String> extend(final Iterable<String> 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
)
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/takes/rs/RsWithStatus.java
Expand Up @@ -103,7 +103,6 @@ private static Iterable<String> 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
)
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/takes/rs/xe/RsXembly.java
Expand Up @@ -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
);
Expand Down
Expand Up @@ -59,7 +59,6 @@ void signs() throws IOException {
)
),
new IsEqual<>(
// @checkstyle LineLength (1 line)
"f7bc83f430538424b13298e6aa6fb143ef4d59a14946175997479dbc2d1a3cd8"
)
).affirm();
Expand Down
1 change: 0 additions & 1 deletion src/test/java/org/takes/misc/HrefTest.java
Expand Up @@ -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")
);
Expand Down

0 comments on commit e743ff9

Please sign in to comment.