From b5d441f7bf7daff26050759bbd11bb39de46b71c Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Thu, 24 Oct 2024 13:35:56 +0300 Subject: [PATCH] doc typos --- src/main/java/org/takes/Request.java | 4 ++-- src/main/java/org/takes/Response.java | 4 ++-- src/main/java/org/takes/Take.java | 4 ++-- src/main/java/org/takes/tk/TkEmpty.java | 3 +-- src/main/java/org/takes/tk/TkFiles.java | 2 +- src/test/java/org/takes/tk/TkWithHeadersTest.java | 2 +- 6 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/main/java/org/takes/Request.java b/src/main/java/org/takes/Request.java index 321518116..80200e005 100644 --- a/src/main/java/org/takes/Request.java +++ b/src/main/java/org/takes/Request.java @@ -36,8 +36,8 @@ * *

All implementations of this interface must be immutable and thread-safe. * - * @see org.takes.Response - * @see org.takes.Take + * @see Response + * @see Take * @see org.takes.facets.fork.RqRegex * @see org.takes.rq.RqHref * @see diff --git a/src/main/java/org/takes/Response.java b/src/main/java/org/takes/Response.java index 32dab334c..929028993 100644 --- a/src/main/java/org/takes/Response.java +++ b/src/main/java/org/takes/Response.java @@ -28,7 +28,7 @@ /** * HTTP response. * - *

{@link org.takes.Response} interface is an abstraction of a HTTP + *

{@link Response} interface is an abstraction of a HTTP * response, that consists of a few headers and a body. To construct * a response, use one of the composable decorators from * {@link org.takes.rs} package. For example, this code will create @@ -50,7 +50,7 @@ * *

All implementations of this interface must be immutable and thread-safe. * - * @see org.takes.Take + * @see Take * @see org.takes.rs.RsWithBody * @see org.takes.rs.RsWithHeader * @see diff --git a/src/main/java/org/takes/Take.java b/src/main/java/org/takes/Take.java index 68a165e30..ec7cc6926 100644 --- a/src/main/java/org/takes/Take.java +++ b/src/main/java/org/takes/Take.java @@ -27,7 +27,7 @@ * Take. * *

Take is a momentary snapshot of in-server reality, visible to the - * end user via printable {@link org.takes.Response}. + * end user via printable {@link Response}. * For example, this is a simple web server * that returns "hello, world!" plain text web page: * @@ -42,7 +42,7 @@ * ).start(Exit.NEVER); * } * - *

There are a few classes that implement this interface and you + *

There are a few classes that implement this interface, and you * can create your own. But the best way is to start with * {@link org.takes.facets.fork.TkFork}, for example: * diff --git a/src/main/java/org/takes/tk/TkEmpty.java b/src/main/java/org/takes/tk/TkEmpty.java index 8cdfbd110..e117fb7c5 100644 --- a/src/main/java/org/takes/tk/TkEmpty.java +++ b/src/main/java/org/takes/tk/TkEmpty.java @@ -32,8 +32,7 @@ /** * Empty take. * - *

This "take" always returns an instance of - * {@link org.takes.rs.RsEmpty}. + *

This "take" always returns an instance of {@link RsEmpty}. * *

The class is immutable and thread-safe. * diff --git a/src/main/java/org/takes/tk/TkFiles.java b/src/main/java/org/takes/tk/TkFiles.java index c5f6d7e7e..6b842d3dd 100644 --- a/src/main/java/org/takes/tk/TkFiles.java +++ b/src/main/java/org/takes/tk/TkFiles.java @@ -46,7 +46,7 @@ * {@code "/css/style.css?eot"}. {@link TkFiles} * will try to find a resource {@code "/tmp/css/style.css"} on disc. * - *

If such a resource is not found, {@link org.takes.HttpException} + *

If such a resource is not found, {@link HttpException} * will be thrown. * *

The class is immutable and thread-safe. diff --git a/src/test/java/org/takes/tk/TkWithHeadersTest.java b/src/test/java/org/takes/tk/TkWithHeadersTest.java index 2774a3e3e..2c55bca2d 100644 --- a/src/test/java/org/takes/tk/TkWithHeadersTest.java +++ b/src/test/java/org/takes/tk/TkWithHeadersTest.java @@ -31,7 +31,7 @@ import org.takes.rs.RsPrint; /** - * Test case for {@link org.takes.tk.TkWithHeaders}. + * Test case for {@link TkWithHeaders}. * @since 0.9.1 */ final class TkWithHeadersTest {