This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 6583121 Polished:
6583121 is described below
commit 6583121d66966ca3435415cc5e7f2c12650d36f2
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon May 17 16:37:01 2021 +0200
Polished:
---
core/camel-api/src/main/java/org/apache/camel/spi/Resource.java | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/core/camel-api/src/main/java/org/apache/camel/spi/Resource.java
b/core/camel-api/src/main/java/org/apache/camel/spi/Resource.java
index e56f6af..feac689 100644
--- a/core/camel-api/src/main/java/org/apache/camel/spi/Resource.java
+++ b/core/camel-api/src/main/java/org/apache/camel/spi/Resource.java
@@ -30,13 +30,14 @@ import java.nio.charset.StandardCharsets;
* Describe a resource, such as a file or class path resource.
*/
public interface Resource {
+
/**
* The location of the resource.
*/
String getLocation();
/**
- * Whether this resource exists..
+ * Whether this resource exists.
*/
boolean exists();
@@ -69,7 +70,9 @@ public interface Resource {
/**
* Returns a {@link Reader} that reads from the underlying resource using
UTF-8 as charset.
* </p>
- * Each invocation must return a new {@link Reader}, @see #getInputStream()
+ * Each invocation must return a new {@link Reader}.
+ *
+ * @see #getInputStream()
*/
default Reader getReader() throws Exception {
return getReader(StandardCharsets.UTF_8);
@@ -78,7 +81,7 @@ public interface Resource {
/**
* Returns a {@link Reader} that reads from the underlying resource using
the given {@link Charset}
* </p>
- * Each invocation must return a new {@link Reader}, @see #getInputStream()
+ * Each invocation must return a new {@link Reader}.
*
* @see #getInputStream()
*/