You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2024/02/09 12:55:56 UTC

(camel) branch main updated: (chores) camel-avro: documentation fixes

This is an automated email from the ASF dual-hosted git repository.

orpiske 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 f87dcc742d2 (chores) camel-avro: documentation fixes
f87dcc742d2 is described below

commit f87dcc742d2c2b3c1be24a92018ab2c79387bffa
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Feb 9 11:16:33 2024 +0100

    (chores) camel-avro: documentation fixes
    
    - Fixed grammar and typos
    - Fixed punctuation
    - Added and/or fixed links
---
 .../org/apache/camel/catalog/components/avro.json  |  8 ++---
 .../org/apache/camel/component/avro/avro.json      |  8 ++---
 .../src/main/docs/avro-component.adoc              | 39 ++++++++++++----------
 .../apache/camel/component/avro/AvroComponent.java |  8 ++---
 .../camel/component/avro/AvroConfiguration.java    |  8 ++---
 5 files changed, 37 insertions(+), 34 deletions(-)

diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/avro.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/avro.json
index c421cb6bf67..f14b393dfaa 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/avro.json
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/avro.json
@@ -26,8 +26,8 @@
     "protocol": { "index": 0, "kind": "property", "displayName": "Protocol", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.avro.Protocol", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol to use" },
     "protocolClassName": { "index": 1, "kind": "property", "displayName": "Protocol Class Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol to use defined by the FQN class name" },
     "protocolLocation": { "index": 2, "kind": "property", "displayName": "Protocol Location", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol location" },
-    "reflectionProtocol": { "index": 3, "kind": "property", "displayName": "Reflection Protocol", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If protocol object provided is reflection protocol. Should be used only with protocol para [...]
-    "singleParameter": { "index": 4, "kind": "property", "displayName": "Single Parameter", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If true, consumer parameter won't be wrapped into array. Will fail if protocol specifies more th [...]
+    "reflectionProtocol": { "index": 3, "kind": "property", "displayName": "Reflection Protocol", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If the protocol object provided is reflection protocol. Should be used only with protocol  [...]
+    "singleParameter": { "index": 4, "kind": "property", "displayName": "Single Parameter", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If true, consumer parameter won't be wrapped into an array. Will fail if protocol specifies more [...]
     "uriAuthority": { "index": 5, "kind": "property", "displayName": "Uri Authority", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Authority to use (username and password)" },
     "bridgeErrorHandler": { "index": 6, "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the like [...]
     "lazyStartProducer": { "index": 7, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail [...]
@@ -45,8 +45,8 @@
     "protocol": { "index": 4, "kind": "parameter", "displayName": "Protocol", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.avro.Protocol", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol to use" },
     "protocolClassName": { "index": 5, "kind": "parameter", "displayName": "Protocol Class Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol to use defined by the FQN class name" },
     "protocolLocation": { "index": 6, "kind": "parameter", "displayName": "Protocol Location", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol location" },
-    "reflectionProtocol": { "index": 7, "kind": "parameter", "displayName": "Reflection Protocol", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If protocol object provided is reflection protocol. Should be used only with protocol par [...]
-    "singleParameter": { "index": 8, "kind": "parameter", "displayName": "Single Parameter", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If true, consumer parameter won't be wrapped into array. Will fail if protocol specifies more t [...]
+    "reflectionProtocol": { "index": 7, "kind": "parameter", "displayName": "Reflection Protocol", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If the protocol object provided is reflection protocol. Should be used only with protocol [...]
+    "singleParameter": { "index": 8, "kind": "parameter", "displayName": "Single Parameter", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If true, consumer parameter won't be wrapped into an array. Will fail if protocol specifies mor [...]
     "uriAuthority": { "index": 9, "kind": "parameter", "displayName": "Uri Authority", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Authority to use (username and password)" },
     "bridgeErrorHandler": { "index": 10, "kind": "parameter", "displayName": "Bridge Error Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming [...]
     "exceptionHandler": { "index": 11, "kind": "parameter", "displayName": "Exception Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", "deprecated": false, "autowired": false, "secret": false, "description": "To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By de [...]
diff --git a/components/camel-avro-rpc/camel-avro-rpc-component/src/generated/resources/org/apache/camel/component/avro/avro.json b/components/camel-avro-rpc/camel-avro-rpc-component/src/generated/resources/org/apache/camel/component/avro/avro.json
index c421cb6bf67..f14b393dfaa 100644
--- a/components/camel-avro-rpc/camel-avro-rpc-component/src/generated/resources/org/apache/camel/component/avro/avro.json
+++ b/components/camel-avro-rpc/camel-avro-rpc-component/src/generated/resources/org/apache/camel/component/avro/avro.json
@@ -26,8 +26,8 @@
     "protocol": { "index": 0, "kind": "property", "displayName": "Protocol", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.avro.Protocol", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol to use" },
     "protocolClassName": { "index": 1, "kind": "property", "displayName": "Protocol Class Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol to use defined by the FQN class name" },
     "protocolLocation": { "index": 2, "kind": "property", "displayName": "Protocol Location", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol location" },
-    "reflectionProtocol": { "index": 3, "kind": "property", "displayName": "Reflection Protocol", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If protocol object provided is reflection protocol. Should be used only with protocol para [...]
-    "singleParameter": { "index": 4, "kind": "property", "displayName": "Single Parameter", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If true, consumer parameter won't be wrapped into array. Will fail if protocol specifies more th [...]
+    "reflectionProtocol": { "index": 3, "kind": "property", "displayName": "Reflection Protocol", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If the protocol object provided is reflection protocol. Should be used only with protocol  [...]
+    "singleParameter": { "index": 4, "kind": "property", "displayName": "Single Parameter", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If true, consumer parameter won't be wrapped into an array. Will fail if protocol specifies more [...]
     "uriAuthority": { "index": 5, "kind": "property", "displayName": "Uri Authority", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Authority to use (username and password)" },
     "bridgeErrorHandler": { "index": 6, "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the like [...]
     "lazyStartProducer": { "index": 7, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail [...]
@@ -45,8 +45,8 @@
     "protocol": { "index": 4, "kind": "parameter", "displayName": "Protocol", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.avro.Protocol", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol to use" },
     "protocolClassName": { "index": 5, "kind": "parameter", "displayName": "Protocol Class Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol to use defined by the FQN class name" },
     "protocolLocation": { "index": 6, "kind": "parameter", "displayName": "Protocol Location", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol location" },
-    "reflectionProtocol": { "index": 7, "kind": "parameter", "displayName": "Reflection Protocol", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If protocol object provided is reflection protocol. Should be used only with protocol par [...]
-    "singleParameter": { "index": 8, "kind": "parameter", "displayName": "Single Parameter", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If true, consumer parameter won't be wrapped into array. Will fail if protocol specifies more t [...]
+    "reflectionProtocol": { "index": 7, "kind": "parameter", "displayName": "Reflection Protocol", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If the protocol object provided is reflection protocol. Should be used only with protocol [...]
+    "singleParameter": { "index": 8, "kind": "parameter", "displayName": "Single Parameter", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If true, consumer parameter won't be wrapped into an array. Will fail if protocol specifies mor [...]
     "uriAuthority": { "index": 9, "kind": "parameter", "displayName": "Uri Authority", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Authority to use (username and password)" },
     "bridgeErrorHandler": { "index": 10, "kind": "parameter", "displayName": "Bridge Error Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming [...]
     "exceptionHandler": { "index": 11, "kind": "parameter", "displayName": "Exception Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", "deprecated": false, "autowired": false, "secret": false, "description": "To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By de [...]
diff --git a/components/camel-avro-rpc/camel-avro-rpc-component/src/main/docs/avro-component.adoc b/components/camel-avro-rpc/camel-avro-rpc-component/src/main/docs/avro-component.adoc
index 1f3074d5b6a..61867d7cd9f 100644
--- a/components/camel-avro-rpc/camel-avro-rpc-component/src/main/docs/avro-component.adoc
+++ b/components/camel-avro-rpc/camel-avro-rpc-component/src/main/docs/avro-component.adoc
@@ -14,7 +14,7 @@
 
 *{component-header}*
 
-This component provides a support for Apache Avro's rpc, by
+This component provides support for Apache Avro's rpc, by
 providing producers and consumers endpoint for using avro over netty or
 http. Before Camel 3.2 this functionality was a part of camel-avro component.
 
@@ -85,12 +85,12 @@ You can easily generate classes from a schema, using maven, ant etc.
 More details can be found at the
 http://avro.apache.org/docs/current/[Apache Avro documentation].
 
-However, it doesn't enforce a schema first approach and you can create
-schema for your existing classes. *Since 2.12* you can use existing
-protocol interfaces to make RCP calls. You should use interface for the
-protocol itself and POJO beans or primitive/String classes for parameter
+However, it doesn't enforce a schema-first approach, and you can create
+schema for your existing classes.
+You can use existing protocol interfaces to make RCP calls.
+You should use interface for the protocol itself and POJO beans or primitive/String classes for parameter
 and result types. Here is an example of the class that corresponds to
-schema above:
+the schema above:
 
 [source,java]
 --------------------------------------------------------------
@@ -113,7 +113,7 @@ data format._
 
 == Using Avro RPC in Camel
 
-As mentioned above Avro also provides RPC support over multiple
+As mentioned above, Avro also provides RPC support over multiple
 transports such as http and netty. Camel provides consumers and
 producers for these two transports.
 
@@ -123,14 +123,17 @@ avro:[transport]:[host]:[port][?options]
 
 The supported transport values are currently http or netty.
 
-*Since 2.12* you can specify message name right in the URI:
+[NOTE]
+====
+You can specify the message name right in the URI:
 
 ------------------------------------------------------
 avro:[transport]:[host]:[port][/messageName][?options]
 ------------------------------------------------------
+====
 
-For consumers this allows you to have multiple routes attached to the
-same socket. Dispatching to correct route will be done by the avro
+For consumers, this allows you to have multiple routes attached to the
+same socket. Dispatching to the correct route will be done by the avro
 component automatically. Route with no messageName specified (if any)
 will be used as default.
 
@@ -139,11 +142,11 @@ contain the parameters of the operation specified in the avro protocol.
 The response will be added in the body of the "out" message.
 
 In a similar manner when using camel avro consumers for avro ipc, the
-requests parameters will be placed inside the "in" message body of the
-created exchange and once the exchange is processed the body of the
+request parameters will be placed inside the "in" message body of the
+created exchange. Once the exchange is processed, the body of the
 "out" message will be sent as a response.
 
-*Note:* By default consumer parameters are wrapped into array. If you've
+*Note:* By default, consumer parameters are wrapped into an array. If you've
 got only one parameter, *since 2.12* you can use `singleParameter` URI
 option to receive it directly in the "in" message body without array
 wrapping.
@@ -166,7 +169,8 @@ An example of using camel avro producers via http:
 ---------------------------------------------------------------------------------------------------------------------------
 
 In the example above you need to fill `CamelAvroMessageName` header.
-*Since 2.12* you can use following syntax to call constant messages:
+
+You can use the following syntax to call constant messages:
 
 [source,xml]
 -------------------------------------------------------------------------------------------------------------------------------
@@ -196,8 +200,7 @@ An example of consuming messages using camel avro consumers via netty:
         </route>
 ------------------------------------------------------------------------------------------------------------------------------
 
-*Since 2.12* you can set up two distinct routes to perform the same
-task:
+You can set up two distinct routes to perform the same task:
 
 [source,xml]
 -------------------------------------------------------------------------------------------------------------------------------------------------------
@@ -213,8 +216,8 @@ task:
 
 In the example above, get takes only one parameter, so `singleParameter`
 is used and `getProcessor` will receive Value class directly in body,
-while `putProcessor` will receive an array of size 2 with String key and
-Value value filled as array contents.
+while `putProcessor` will receive an array of size 2 with `String` key and
+`Value` value filled as array contents.
 
 
 == Avro via HTTP SPI
diff --git a/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroComponent.java b/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroComponent.java
index dfb98f1a427..7dd19705693 100644
--- a/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroComponent.java
+++ b/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroComponent.java
@@ -77,8 +77,8 @@ public class AvroComponent extends DefaultComponent {
     }
 
     /**
-     * Registers new responder with uri as key. Registers consumer in responder. In case if responder is already
-     * registered by this uri then just registers consumer.
+     * Registers new responder with uri as a key. Registers consumer in responder. In case if responder is already
+     * registered by this uri, then register consumer.
      *
      * @param  uri         URI of the endpoint without message name
      * @param  messageName message name
@@ -95,8 +95,8 @@ public class AvroComponent extends DefaultComponent {
     }
 
     /**
-     * Calls unregister of consumer by appropriate message name. In case if all consumers are unregistered then it
-     * removes responder from the registry.
+     * Calls unregister of consumer by the appropriate message name.
+     * In case if all consumers are unregistered, then it removes responder from the registry.
      *
      * @param uri         URI of the endpoint without message name
      * @param messageName message name
diff --git a/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroConfiguration.java b/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroConfiguration.java
index 36d8cc40275..02897ff05e3 100644
--- a/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroConfiguration.java
+++ b/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroConfiguration.java
@@ -182,8 +182,8 @@ public class AvroConfiguration implements Cloneable {
     }
 
     /**
-     * If protocol object provided is reflection protocol. Should be used only with protocol parameter because for
-     * protocolClassName protocol type will be auto detected
+     * If the protocol object provided is reflection protocol.
+     * Should be used only with protocol parameter because for protocolClassName protocol type will be auto-detected
      */
     public void setReflectionProtocol(boolean isReflectionProtocol) {
         this.reflectionProtocol = isReflectionProtocol;
@@ -194,8 +194,8 @@ public class AvroConfiguration implements Cloneable {
     }
 
     /**
-     * If true, consumer parameter won't be wrapped into array. Will fail if protocol specifies more then 1 parameter
-     * for the message
+     * If true, consumer parameter won't be wrapped into an array.
+     * Will fail if protocol specifies more than one parameter for the message
      */
     public void setSingleParameter(boolean singleParameter) {
         this.singleParameter = singleParameter;