svn commit: r1818009 - /ofbiz/ofbiz-plugins/trunk/lucene/src/main/java/org/apache/ofbiz/content/test/LuceneTests.java

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

svn commit: r1818009 - /ofbiz/ofbiz-plugins/trunk/lucene/src/main/java/org/apache/ofbiz/content/test/LuceneTests.java

mbrohl
Author: mbrohl
Date: Wed Dec 13 13:09:46 2017
New Revision: 1818009

URL: http://svn.apache.org/viewvc?rev=1818009&view=rev
Log:
Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.content.test.
(OFBIZ-9817)

Thanks Julian Leichert for reporting and providing the patch.

Modified:
    ofbiz/ofbiz-plugins/trunk/lucene/src/main/java/org/apache/ofbiz/content/test/LuceneTests.java

Modified: ofbiz/ofbiz-plugins/trunk/lucene/src/main/java/org/apache/ofbiz/content/test/LuceneTests.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/lucene/src/main/java/org/apache/ofbiz/content/test/LuceneTests.java?rev=1818009&r1=1818008&r2=1818009&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/lucene/src/main/java/org/apache/ofbiz/content/test/LuceneTests.java (original)
+++ ofbiz/ofbiz-plugins/trunk/lucene/src/main/java/org/apache/ofbiz/content/test/LuceneTests.java Wed Dec 13 13:09:46 2017
@@ -41,10 +41,12 @@ import org.apache.ofbiz.entity.GenericVa
 import org.apache.ofbiz.entity.util.EntityQuery;
 import org.apache.ofbiz.service.ServiceUtil;
 import org.apache.ofbiz.service.testtools.OFBizTestCase;
+import org.apache.ofbiz.base.util.Debug;
 
 public class LuceneTests extends OFBizTestCase {
 
     protected GenericValue userLogin = null;
+    public final static String module = LuceneTests.class.getName();
 
     public LuceneTests(String name) {
         super(name);
@@ -68,7 +70,9 @@ public class LuceneTests extends OFBizTe
         
         try {
             Thread.sleep(3000); // sleep 3 seconds to give enough time to the indexer to process the entries
-        } catch(Exception e) {}
+        } catch (InterruptedException e) {
+            Debug.logError("Thread interrupted :" + e, module);
+        }
         
         Directory directory = FSDirectory.open(new File(SearchWorker.getIndexPath("content")).toPath());