From c2f5697dfa9831cb4ea3466a96826890865379eb Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Thu, 24 Oct 2024 13:55:27 +0300 Subject: [PATCH] simplified --- src/main/java/org/takes/tk/TkText.java | 2 +- src/main/java/org/takes/tk/TkWithHeader.java | 2 +- src/main/java/org/takes/tk/TkWithHeaders.java | 2 +- src/main/java/org/takes/tk/TkWithType.java | 2 +- src/test/java/org/takes/http/BkParallelTest.java | 16 +++++++--------- 5 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/main/java/org/takes/tk/TkText.java b/src/main/java/org/takes/tk/TkText.java index cebf78ab4..25caddf2b 100644 --- a/src/main/java/org/takes/tk/TkText.java +++ b/src/main/java/org/takes/tk/TkText.java @@ -34,7 +34,7 @@ * Text take. * *

This take returns an HTML response by wrapping the provided - * content into {@link org.takes.rs.RsText}. + * content into {@link RsText}. * *

The class is immutable and thread-safe. * diff --git a/src/main/java/org/takes/tk/TkWithHeader.java b/src/main/java/org/takes/tk/TkWithHeader.java index bf226d575..1fb908059 100644 --- a/src/main/java/org/takes/tk/TkWithHeader.java +++ b/src/main/java/org/takes/tk/TkWithHeader.java @@ -32,7 +32,7 @@ * Take with an extra header. * *

This take wraps all responses of another take, adding - * an extra header to them, through {@link org.takes.rs.RsWithHeader}. + * an extra header to them, through {@link RsWithHeader}. * *

The class is immutable and thread-safe. * diff --git a/src/main/java/org/takes/tk/TkWithHeaders.java b/src/main/java/org/takes/tk/TkWithHeaders.java index 20365465f..6363d78a3 100644 --- a/src/main/java/org/takes/tk/TkWithHeaders.java +++ b/src/main/java/org/takes/tk/TkWithHeaders.java @@ -34,7 +34,7 @@ * Take that headers. * *

This take wraps all responses of another take, adding - * headers to them, through {@link org.takes.rs.RsWithHeaders}. + * headers to them, through {@link RsWithHeaders}. * *

The class is immutable and thread-safe. * diff --git a/src/main/java/org/takes/tk/TkWithType.java b/src/main/java/org/takes/tk/TkWithType.java index 2b8cdab27..cc0acd012 100644 --- a/src/main/java/org/takes/tk/TkWithType.java +++ b/src/main/java/org/takes/tk/TkWithType.java @@ -32,7 +32,7 @@ * Plain text take. * *

This take wraps all responses of another take, adding - * content type to them, through {@link org.takes.rs.RsWithType}. + * content type to them, through {@link RsWithType}. * *

The class is immutable and thread-safe. * diff --git a/src/test/java/org/takes/http/BkParallelTest.java b/src/test/java/org/takes/http/BkParallelTest.java index 4ff41df02..f51cf7ca4 100644 --- a/src/test/java/org/takes/http/BkParallelTest.java +++ b/src/test/java/org/takes/http/BkParallelTest.java @@ -42,15 +42,13 @@ * @checkstyle ExecutableStatementCountCheck (500 lines) * @since 0.15.2 */ -@SuppressWarnings - ( - { - "PMD.CyclomaticComplexity", - "PMD.AvoidInstantiatingObjectsInLoops", - "PMD.StdCyclomaticComplexity", - "PMD.ModifiedCyclomaticComplexity" - } - ) final class BkParallelTest { +@SuppressWarnings({ + "PMD.CyclomaticComplexity", + "PMD.AvoidInstantiatingObjectsInLoops", + "PMD.StdCyclomaticComplexity", + "PMD.ModifiedCyclomaticComplexity" +}) +final class BkParallelTest { @Test void requestsAreParallel() throws Exception { final ServerSocket socket = new ServerSocket(0);