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 2022/06/17 10:32:03 UTC

[camel] 08/14: (chores) camel-google-gora: removed unused method parameters

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

commit d3331d7cbf2ac7e88a25f735b534235fb397110f
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 17 10:22:32 2022 +0200

    (chores) camel-google-gora: removed unused method parameters
---
 .../src/main/java/org/apache/camel/component/gora/GoraProducer.java | 6 +++---
 .../main/java/org/apache/camel/component/gora/utils/GoraUtils.java  | 5 ++---
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/components/camel-gora/src/main/java/org/apache/camel/component/gora/GoraProducer.java b/components/camel-gora/src/main/java/org/apache/camel/component/gora/GoraProducer.java
index e8a12fb5caa..f3579d40ac3 100644
--- a/components/camel-gora/src/main/java/org/apache/camel/component/gora/GoraProducer.java
+++ b/components/camel-gora/src/main/java/org/apache/camel/component/gora/GoraProducer.java
@@ -24,7 +24,7 @@ import org.apache.camel.support.DefaultProducer;
 import org.apache.gora.persistency.Persistent;
 import org.apache.gora.store.DataStore;
 
-import static org.apache.camel.component.gora.utils.GoraUtils.constractQueryFromPropertiesMap;
+import static org.apache.camel.component.gora.utils.GoraUtils.constructQueryFromPropertiesMap;
 import static org.apache.camel.component.gora.utils.GoraUtils.getKeyFromExchange;
 import static org.apache.camel.component.gora.utils.GoraUtils.getValueFromExchange;
 
@@ -77,10 +77,10 @@ public class GoraProducer extends DefaultProducer {
             result = dataStore.delete(getKeyFromExchange(exchange));
         } else if (GoraOperation.QUERY.value.equalsIgnoreCase(operation)) {
             final Map<String, Object> props = exchange.getIn().getHeaders();
-            result = constractQueryFromPropertiesMap(props, dataStore, this.configuration).execute();
+            result = constructQueryFromPropertiesMap(props, dataStore).execute();
         } else if (GoraOperation.DELETE_BY_QUERY.value.equalsIgnoreCase(operation)) {
             final Map<String, Object> props = exchange.getIn().getHeaders();
-            result = dataStore.deleteByQuery(constractQueryFromPropertiesMap(props, dataStore, this.configuration));
+            result = dataStore.deleteByQuery(constructQueryFromPropertiesMap(props, dataStore));
         } else if (GoraOperation.GET_SCHEMA_NAME.value.equalsIgnoreCase(operation)) {
             result = dataStore.getSchemaName();
         } else if (GoraOperation.DELETE_SCHEMA.value.equalsIgnoreCase(operation)) {
diff --git a/components/camel-gora/src/main/java/org/apache/camel/component/gora/utils/GoraUtils.java b/components/camel-gora/src/main/java/org/apache/camel/component/gora/utils/GoraUtils.java
index d0b960fa6d9..0b11d4437c8 100644
--- a/components/camel-gora/src/main/java/org/apache/camel/component/gora/utils/GoraUtils.java
+++ b/components/camel-gora/src/main/java/org/apache/camel/component/gora/utils/GoraUtils.java
@@ -96,10 +96,9 @@ public final class GoraUtils {
      *
      * <b>NOTE:</b> values used in order construct the query should be stored in the "in" message headers.
      */
-    public static Query<Object, Persistent> constractQueryFromPropertiesMap(
+    public static Query<Object, Persistent> constructQueryFromPropertiesMap(
             final Map<String, ?> propertiesMap,
-            final DataStore<Object, Persistent> dataStore,
-            final GoraConfiguration conf) {
+            final DataStore<Object, Persistent> dataStore) {
 
         final Query<Object, Persistent> query = dataStore.newQuery();