Improved: Corrected checkstyle formatting issues, 'is preceded/not preceded with whitespace' for plugins component.
(OFBIZ-11874)
This fixes following checkstyle issues:
'{' is not preceded with whitespace.
'{' is not followed by whitespace.
'}' is not followed by whitespace.
'}' is not preceded with whitespace.
'typecast' is not followed by whitespace.
'try' is not followed by whitespace.
';' is preceded with whitespace.
This commit is contained in:
@@ -88,7 +88,7 @@ public class DocumentIndexer extends Thread {
|
||||
try {
|
||||
indexWriter.close();
|
||||
indexWriter = null;
|
||||
} catch(IOException ioe) {
|
||||
} catch (IOException ioe) {
|
||||
Debug.logError(ioe, MODULE);
|
||||
}
|
||||
}
|
||||
@@ -121,13 +121,13 @@ public class DocumentIndexer extends Thread {
|
||||
indexWriter.updateDocument(documentIdentifier, document);
|
||||
if (Debug.infoOn()) Debug.logInfo(getName() + ": indexed Lucene document: " + ofbizDocument, MODULE);
|
||||
}
|
||||
} catch(Exception e) {
|
||||
} catch (Exception e) {
|
||||
Debug.logError(e, getName() + ": error processing Lucene document: " + ofbizDocument, MODULE);
|
||||
if (documentIndexQueue.peek() == null) {
|
||||
try {
|
||||
indexWriter.close();
|
||||
indexWriter = null;
|
||||
} catch(IOException ioe) {
|
||||
} catch (IOException ioe) {
|
||||
Debug.logError(ioe, MODULE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ public final class SearchWorker {
|
||||
|
||||
private static final Version LUCENE_VERSION = Version.LUCENE_8_5_0;
|
||||
|
||||
private SearchWorker() {}
|
||||
private SearchWorker() { }
|
||||
|
||||
public static void indexContentTree(LocalDispatcher dispatcher, Delegator delegator, String siteId) throws Exception {
|
||||
GenericValue content = delegator.makeValue("Content", UtilMisc.toMap("contentId", siteId));
|
||||
|
||||
Reference in New Issue
Block a user