* @see {@link RecoveryIndexer#recover()}
*/
public double getFailureRatio() {
- return total.get() == 0 ? 1 : (1.0d * getFailures()) / total.get();
+ return total.get() == 0 ? 1 : ((1.0d * getFailures()) / total.get());
}
public boolean isSuccess() {
// index all organization extensions
if (uninitializedIndexTypes.contains(INDEX_TYPE_RULE_EXTENSION)) {
- dbClient.ruleDao().scrollIndexingRuleExtensions(dbSession, dto -> {
- bulk.add(newRuleExtensionDocIndexRequest(dto));
- });
+ dbClient.ruleDao().scrollIndexingRuleExtensions(dbSession, dto ->
+ bulk.add(newRuleExtensionDocIndexRequest(dto))
+ );
}
bulk.stop();