Skip to content

Commit

Permalink
suppress sonar warning for cognitive complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
alecgrieser committed May 24, 2022
1 parent d05435c commit 438019c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ private FDBDirectoryMergeScheduler(@Nonnull IndexMaintainerState state, int merg
this.mergeDirectoryCount = mergeDirectoryCount;
}

@SuppressWarnings("squid:S2245") // ThreadLocalRandom not used in case where cryptographic security is needed
@SuppressWarnings({
"squid:S2245", // ThreadLocalRandom not used in case where cryptographic security is needed
"squid:S3776", // Cognitive complexity is too high. Candidate for later refactoring
})
@Override
public synchronized void merge(final MergeSource mergeSource, final MergeTrigger trigger) throws IOException {
if (state.context.getPropertyStorage().getPropertyValue(LuceneRecordContextProperties.LUCENE_MULTIPLE_MERGE_OPTIMIZATION_ENABLED) && trigger == MergeTrigger.FULL_FLUSH) {
Expand Down

0 comments on commit 438019c

Please sign in to comment.