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

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 350ed40e0fefd8506e483df686e5a1b2a60419eb
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Thu Jul 18 08:43:46 2019 +0200

    CAMEL-13762 - Fixed CS
---
 .../processor/lucene/LuceneQueryProcessor.java     | 28 +++++++++++-----------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git 
a/components/camel-lucene/src/main/java/org/apache/camel/processor/lucene/LuceneQueryProcessor.java
 
b/components/camel-lucene/src/main/java/org/apache/camel/processor/lucene/LuceneQueryProcessor.java
index eeebb45..e13ffac 100644
--- 
a/components/camel-lucene/src/main/java/org/apache/camel/processor/lucene/LuceneQueryProcessor.java
+++ 
b/components/camel-lucene/src/main/java/org/apache/camel/processor/lucene/LuceneQueryProcessor.java
@@ -32,17 +32,17 @@ public class LuceneQueryProcessor implements Processor {
     private IndexSearcher indexSearcher;
     private LuceneSearcher searcher;
     private String searchPhrase;
-    private int maxNumberOfHits; 
+    private int maxNumberOfHits;
     private int totalHitsThreshold;
     private Version luceneVersion;
-    
+
     public LuceneQueryProcessor(String indexDirectoryPath, Analyzer analyzer, 
String defaultSearchPhrase, int maxNumberOfHits, int totalHitsThreshold) {
         this.setAnalyzer(analyzer);
         this.setIndexDirectory(new File(indexDirectoryPath));
         this.setSearchPhrase(defaultSearchPhrase);
         this.setMaxNumberOfHits(maxNumberOfHits);
     }
-    
+
     public void process(Exchange exchange) throws Exception {
         Hits hits;
 
@@ -56,9 +56,9 @@ public class LuceneQueryProcessor implements Processor {
             hits = searcher.search(phrase, maxNumberOfHits, 
totalHitsThreshold, luceneVersion, isReturnLuceneDocs);
         } else {
             throw new IllegalArgumentException("SearchPhrase for 
LuceneQueryProcessor not set. Set the Header value: QUERY");
-        }            
-        
-        exchange.getIn().setBody(hits);        
+        }
+
+        exchange.getIn().setBody(hits);
     }
 
     public Analyzer getAnalyzer() {
@@ -100,20 +100,20 @@ public class LuceneQueryProcessor implements Processor {
     public void setMaxNumberOfHits(int maxNumberOfHits) {
         this.maxNumberOfHits = maxNumberOfHits;
     }
-    
+
     public void setLuceneVersion(Version luceneVersion) {
         this.luceneVersion = luceneVersion;
     }
-    
+
     public Version getLuceneVersion() {
         return luceneVersion;
     }
 
-       public int getTotalHitsThreshold() {
-               return totalHitsThreshold;
-       }
+    public int getTotalHitsThreshold() {
+        return totalHitsThreshold;
+    }
 
-       public void setTotalHitsThreshold(int totalHitsThreshold) {
-               this.totalHitsThreshold = totalHitsThreshold;
-       }
+    public void setTotalHitsThreshold(int totalHitsThreshold) {
+        this.totalHitsThreshold = totalHitsThreshold;
+    }
 }

Reply via email to