Skip to content

Commit 8912d9d

Browse files
Merge branch 'master' into feature/time-conversion
2 parents 65813c6 + 421ac6d commit 8912d9d

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<dependency>
2121
<groupId>org.junit</groupId>
2222
<artifactId>junit-bom</artifactId>
23-
<version>5.13.4</version>
23+
<version>6.0.0</version>
2424
<type>pom</type>
2525
<scope>import</scope>
2626
</dependency>

spotbugs-exclude.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@
8080
<Match>
8181
<Bug pattern="SA_FIELD_SELF_ASSIGNMENT" />
8282
</Match>
83-
<Match>
84-
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" />
85-
</Match>
8683
<Match>
8784
<Bug pattern="AT_STALE_THREAD_WRITE_OF_PRIMITIVE" />
8885
</Match>

src/main/java/com/thealgorithms/datastructures/caches/LFUCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public void put(K key, V value) {
132132
private void addNodeWithUpdatedFrequency(Node node) {
133133
if (tail != null && head != null) {
134134
Node temp = this.head;
135-
while (temp != null) {
135+
while (true) {
136136
if (temp.frequency > node.frequency) {
137137
if (temp == head) {
138138
node.next = temp;

0 commit comments

Comments
 (0)