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 ead17c9197e Typo
ead17c9197e is described below

commit ead17c9197e69500b77223776f9ff1378170842c
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Tue Jun 18 14:06:04 2024 +0200

    Typo
---
 core/camel-api/src/main/java/org/apache/camel/Message.java | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/core/camel-api/src/main/java/org/apache/camel/Message.java 
b/core/camel-api/src/main/java/org/apache/camel/Message.java
index 02ab5e15d31..b161014e285 100644
--- a/core/camel-api/src/main/java/org/apache/camel/Message.java
+++ b/core/camel-api/src/main/java/org/apache/camel/Message.java
@@ -26,7 +26,7 @@ import org.apache.camel.trait.message.MessageTrait;
  * Implements the <a href="http://camel.apache.org/message.html";>Message</a> 
pattern and represents an inbound or
  * outbound message as part of an {@link Exchange}.
  * <p/>
- * Headers is represented in Camel using a {@link 
org.apache.camel.util.CaseInsensitiveMap CaseInsensitiveMap}. The
+ * Headers are represented in Camel using a {@link 
org.apache.camel.util.CaseInsensitiveMap CaseInsensitiveMap}. The
  * implementation of the map can be configured by the {@link 
HeadersMapFactory} which can be set on the
  * {@link CamelContext}. The default implementation uses the {@link 
org.apache.camel.util.CaseInsensitiveMap
  * CaseInsensitiveMap}.
@@ -110,7 +110,7 @@ public interface Message {
      *
      * @param  name                 name of header
      * @param  defaultValueSupplier the default value supplier used to 
generate the value to return if header was absent
-     * @return                      the value of the given header or he value 
generated by the
+     * @return                      the value of the given header or the value 
generated by the
      *                              <tt>defaultValueSupplier</tt> if there is 
no header for the given name
      */
     Object getHeader(String name, Supplier<Object> defaultValueSupplier);
@@ -143,7 +143,7 @@ public interface Message {
      * @param  name                 the name of the header
      * @param  defaultValueSupplier the default value supplier used to 
generate the value to return if header was absent
      * @param  type                 the type of the header
-     * @return                      the value of the given header or he value 
generated by the
+     * @return                      the value of the given header or the value 
generated by the
      *                              <tt>defaultValueSupplier</tt> if there is 
no header for the given name or
      *                              <tt>null</tt> if it cannot be converted to 
the given type
      */
@@ -186,7 +186,7 @@ public interface Message {
     /**
      * Returns all the headers associated with the message.
      * <p/>
-     * Headers is represented in Camel using a {@link 
org.apache.camel.util.CaseInsensitiveMap CaseInsensitiveMap}. The
+     * Headers are represented in Camel using a {@link 
org.apache.camel.util.CaseInsensitiveMap CaseInsensitiveMap}. The
      * implementation of the map can be configured by the {@link 
HeadersMapFactory} which can be set on the
      * {@link CamelContext}. The default implementation uses the {@link 
org.apache.camel.util.CaseInsensitiveMap
      * CaseInsensitiveMap}.
@@ -209,7 +209,7 @@ public interface Message {
     void setHeaders(Map<String, Object> headers);
 
     /**
-     * Returns whether has any headers has been set.
+     * Returns whether any headers have been set.
      *
      * @return <tt>true</tt> if any headers has been set
      */
@@ -218,7 +218,7 @@ public interface Message {
     /**
      * Returns the body of the message as a POJO
      * <p/>
-     * The body can be <tt>null</tt> if no body is set.
+     * The body can be <tt>null</tt> if body has not been set.
      * <p/>
      * Notice if the message body is stream based then calling this method 
multiple times may lead to the stream not
      * being able to be re-read again. You can enable stream caching and call 
the {@link StreamCache#reset()} method to
@@ -250,7 +250,7 @@ public interface Message {
      * <a href="http://camel.apache.org/stream-caching.html";>stream 
caching</a>.
      *
      * @param  type                    the type that the body
-     * @return                         the body of the message as the 
specified type, or <tt>null</tt> if no body exists
+     * @return                         the body of the message as the 
specified type, or <tt>null</tt> if body does not exist
      * @throws TypeConversionException is thrown if error during type 
conversion
      */
     <T> T getBody(Class<T> type);

Reply via email to