style: include RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE (#6559)

This commit is contained in:
Piotr Idzik
2025-10-01 09:06:50 +02:00
committed by GitHub
parent f9a9ccb6b1
commit 421ac6d74f
2 changed files with 1 additions and 4 deletions

View File

@@ -80,9 +80,6 @@
<Match>
<Bug pattern="SA_FIELD_SELF_ASSIGNMENT" />
</Match>
<Match>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" />
</Match>
<Match>
<Bug pattern="AT_STALE_THREAD_WRITE_OF_PRIMITIVE" />
</Match>

View File

@@ -132,7 +132,7 @@ public class LFUCache<K, V> {
private void addNodeWithUpdatedFrequency(Node node) {
if (tail != null && head != null) {
Node temp = this.head;
while (temp != null) {
while (true) {
if (temp.frequency > node.frequency) {
if (temp == head) {
node.next = temp;