[ofbiz-plugins] branch trunk updated: Improved: Minor Formatting changes only, removed some unused spaces.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ofbiz-plugins] branch trunk updated: Improved: Minor Formatting changes only, removed some unused spaces.

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

surajk pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 364613e  Improved: Minor Formatting changes only, removed some unused spaces.
364613e is described below

commit 364613e310d7947d67411de4a2bfa88248605054
Author: Suraj Khurana <[hidden email]>
AuthorDate: Sat Sep 26 12:22:02 2020 +0530

    Improved: Minor Formatting changes only, removed some unused spaces.
---
 .../org/apache/ofbiz/content/search/DocumentIndexer.java     | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/lucene/src/main/java/org/apache/ofbiz/content/search/DocumentIndexer.java b/lucene/src/main/java/org/apache/ofbiz/content/search/DocumentIndexer.java
index 9731000..94e83bb 100644
--- a/lucene/src/main/java/org/apache/ofbiz/content/search/DocumentIndexer.java
+++ b/lucene/src/main/java/org/apache/ofbiz/content/search/DocumentIndexer.java
@@ -53,9 +53,9 @@ public class DocumentIndexer extends Thread {
         try {
             this.indexDirectory = FSDirectory.open(new File(SearchWorker.getIndexPath(indexName)).toPath());
         } catch (CorruptIndexException e) {
-            Debug.logError("Corrupted lucene index: "  + e.getMessage(), MODULE);
+            Debug.logError("Corrupted lucene index: " + e.getMessage(), MODULE);
         } catch (LockObtainFailedException e) {
-            Debug.logError("Could not obtain Lock on lucene index "  + e.getMessage(), MODULE);
+            Debug.logError("Could not obtain Lock on lucene index " + e.getMessage(), MODULE);
         } catch (IOException e) {
             Debug.logError(e.getMessage(), MODULE);
         }
@@ -98,14 +98,14 @@ public class DocumentIndexer extends Thread {
             Document document = ofbizDocument.prepareDocument(this.delegator);
             if (indexWriter == null) {
                 try {
-                 StandardAnalyzer analyzer = new StandardAnalyzer();
-                 analyzer.setVersion(SearchWorker.getLuceneVersion());
+                    StandardAnalyzer analyzer = new StandardAnalyzer();
+                    analyzer.setVersion(SearchWorker.getLuceneVersion());
                     indexWriter = new IndexWriter(this.indexDirectory, new IndexWriterConfig(analyzer));
                 } catch (CorruptIndexException e) {
-                    Debug.logError("Corrupted lucene index: "  + e.getMessage(), MODULE);
+                    Debug.logError("Corrupted lucene index: " + e.getMessage(), MODULE);
                     break;
                 } catch (LockObtainFailedException e) {
-                    Debug.logError("Could not obtain Lock on lucene index "  + e.getMessage(), MODULE);
+                    Debug.logError("Could not obtain Lock on lucene index " + e.getMessage(), MODULE);
                     // TODO: put the thread to sleep waiting for the locked to be released
                     break;
                 } catch (IOException e) {