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 b317d0d21fea7f758fcc219990770428ee7b6129
Author: Otavio Rodolfo Piske <angusyo...@gmail.com>
AuthorDate: Tue Apr 12 17:17:48 2022 +0200

    CAMEL-17763: cleaned up unused exceptions in camel-lucene
---
 .../component/lucene/LuceneIndexAndQueryProducerIT.java    | 14 +++++++-------
 .../camel/processor/lucene/LuceneQueryProcessorIT.java     |  8 ++++----
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git 
a/components/camel-lucene/src/test/java/org/apache/camel/component/lucene/LuceneIndexAndQueryProducerIT.java
 
b/components/camel-lucene/src/test/java/org/apache/camel/component/lucene/LuceneIndexAndQueryProducerIT.java
index a72f84113b4..994b6207d37 100644
--- 
a/components/camel-lucene/src/test/java/org/apache/camel/component/lucene/LuceneIndexAndQueryProducerIT.java
+++ 
b/components/camel-lucene/src/test/java/org/apache/camel/component/lucene/LuceneIndexAndQueryProducerIT.java
@@ -51,7 +51,7 @@ public class LuceneIndexAndQueryProducerIT extends 
CamelTestSupport {
     };
 
     @Override
-    protected void bindToRegistry(Registry registry) throws Exception {
+    protected void bindToRegistry(Registry registry) {
         registry.bind("std", new File("target/stdindexDir"));
         registry.bind("load_dir", new File("src/test/resources/sources"));
         registry.bind("stdAnalyzer", new StandardAnalyzer());
@@ -66,10 +66,10 @@ public class LuceneIndexAndQueryProducerIT extends 
CamelTestSupport {
         return false;
     }
 
-    private void sendRequest(final String quote) throws Exception {
+    private void sendRequest(final String quote) {
 
         template.send("direct:start", new Processor() {
-            public void process(Exchange exchange) throws Exception {
+            public void process(Exchange exchange) {
 
                 // Set the property of the charset encoding
                 exchange.setProperty(Exchange.CHARSET_NAME, "UTF-8");
@@ -79,9 +79,9 @@ public class LuceneIndexAndQueryProducerIT extends 
CamelTestSupport {
         });
     }
 
-    private void sendQuery() throws Exception {
+    private void sendQuery() {
         template.send("direct:start", new Processor() {
-            public void process(Exchange exchange) throws Exception {
+            public void process(Exchange exchange) {
 
                 // Set the property of the charset encoding
                 exchange.setProperty(Exchange.CHARSET_NAME, "UTF-8");
@@ -127,7 +127,7 @@ public class LuceneIndexAndQueryProducerIT extends 
CamelTestSupport {
                         .to("direct:next");
 
                 from("direct:next").process(new Processor() {
-                    public void process(Exchange exchange) throws Exception {
+                    public void process(Exchange exchange) {
                         Hits hits = exchange.getIn().getBody(Hits.class);
                         printResults(hits);
                     }
@@ -162,7 +162,7 @@ public class LuceneIndexAndQueryProducerIT extends 
CamelTestSupport {
                         
.to("lucene:searchIndex:query?analyzer=#stdAnalyzer&indexDir=#std&maxHits=20").to("direct:next");
 
                 from("direct:next").process(new Processor() {
-                    public void process(Exchange exchange) throws Exception {
+                    public void process(Exchange exchange) {
                         Hits hits = exchange.getIn().getBody(Hits.class);
                         printResults(hits);
                     }
diff --git 
a/components/camel-lucene/src/test/java/org/apache/camel/processor/lucene/LuceneQueryProcessorIT.java
 
b/components/camel-lucene/src/test/java/org/apache/camel/processor/lucene/LuceneQueryProcessorIT.java
index 9c2adcbb3a7..137fe64879b 100644
--- 
a/components/camel-lucene/src/test/java/org/apache/camel/processor/lucene/LuceneQueryProcessorIT.java
+++ 
b/components/camel-lucene/src/test/java/org/apache/camel/processor/lucene/LuceneQueryProcessorIT.java
@@ -38,9 +38,9 @@ public class LuceneQueryProcessorIT extends CamelTestSupport {
         return false;
     }
 
-    private void sendRequest() throws Exception {
+    private void sendRequest() {
         template.send("direct:start", new Processor() {
-            public void process(Exchange exchange) throws Exception {
+            public void process(Exchange exchange) {
 
                 // Set the property of the charset encoding
                 exchange.setProperty(Exchange.CHARSET_NAME, "UTF-8");
@@ -67,7 +67,7 @@ public class LuceneQueryProcessorIT extends CamelTestSupport {
                 }
 
                 from("direct:next").process(new Processor() {
-                    public void process(Exchange exchange) throws Exception {
+                    public void process(Exchange exchange) {
                         Hits hits = exchange.getIn().getBody(Hits.class);
                         printResults(hits);
                     }
@@ -110,7 +110,7 @@ public class LuceneQueryProcessorIT extends 
CamelTestSupport {
                 }
 
                 from("direct:next").process(new Processor() {
-                    public void process(Exchange exchange) throws Exception {
+                    public void process(Exchange exchange) {
                         Hits hits = exchange.getIn().getBody(Hits.class);
                         printResults(hits);
                     }

Reply via email to