We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e6ef7e commit 2375e60Copy full SHA for 2375e60
src/main/java/io/github/javacoded78/jwthumble/storage/TokenStorageImpl.java
@@ -35,11 +35,9 @@ public TokenStorageImpl() {
35
scheduler.scheduleAtFixedRate(
36
() -> {
37
Date date = new Date();
38
- for (Map.Entry<String, TokenEntry> entry : tokens.entrySet()) {
39
- if (entry.getValue().isAfter(date)) {
40
- tokens.remove(entry.getKey());
41
- }
42
+ tokens.entrySet().removeIf(
+ entry -> entry.getValue().isAfter(date)
+ );
43
},
44
0,
45
1,
0 commit comments