Skip to content

Commit 7519bf2

Browse files
authored
Merge pull request #36 from SWAT-engineering/chore/update-dependencies
Update dependencies to latest version and enable dependabot
2 parents 231f003 + 3ade460 commit 7519bf2

File tree

3 files changed

+36
-6
lines changed

3 files changed

+36
-6
lines changed

.github/dependabot.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "maven"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
open-pull-requests-limit: 10
8+
groups:
9+
upstream-libs:
10+
patterns:
11+
- "*"
12+
exclude-patterns:
13+
- "*checkerframework*"
14+
- "*maven.plugins*"
15+
checker-framework:
16+
patterns:
17+
- "*checkerframework*"
18+
maven-plugins:
19+
patterns:
20+
- "*maven.plugins*"
21+
22+
- package-ecosystem: "github-actions"
23+
directory: "/"
24+
schedule:
25+
interval: "monthly"
26+
groups:
27+
gh-actions:
28+
patterns:
29+
- "*" # group all GH action upgrades in a single PR

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@
7171

7272
<properties>
7373
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
74-
<checkerframework.version>3.42.0</checkerframework.version>
75-
<junit.version>5.10.2</junit.version>
76-
<log4j.version>2.23.0</log4j.version>
74+
<checkerframework.version>3.49.2</checkerframework.version>
75+
<junit.version>5.12.2</junit.version>
76+
<log4j.version>2.24.3</log4j.version>
7777
<maven.compiler.source>11</maven.compiler.source>
7878
<maven.compiler.target>11</maven.compiler.target>
7979
</properties>
@@ -204,7 +204,7 @@
204204
<dependency>
205205
<groupId>org.awaitility</groupId>
206206
<artifactId>awaitility</artifactId>
207-
<version>4.2.2</version>
207+
<version>4.3.0</version>
208208
<scope>test</scope>
209209
</dependency>
210210
<dependency>

src/main/java/engineering/swat/watch/impl/overflows/IndexingRescanner.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
import org.apache.logging.log4j.LogManager;
4646
import org.apache.logging.log4j.Logger;
47+
import org.checkerframework.checker.nullness.qual.NonNull;
4748
import org.checkerframework.checker.nullness.qual.Nullable;
4849

4950
import engineering.swat.watch.WatchEvent;
@@ -59,7 +60,7 @@ public IndexingRescanner(Executor exec, Path path, WatchScope scope) {
5960
new Indexer(path, scope).walkFileTree(); // Make an initial scan to populate the index
6061
}
6162

62-
private static class PathMap<V> {
63+
private static class PathMap<V extends @NonNull Object > {
6364
private final Map<Path, Map<Path, V>> values = new ConcurrentHashMap<>();
6465
// ^^^^ ^^^^
6566
// Parent File name (regular file or directory)
@@ -85,7 +86,7 @@ public Set<Path> getFileNames(Path parent) {
8586
return apply(this::remove, p);
8687
}
8788

88-
private static <V> @Nullable V apply(BiFunction<Path, Path, @Nullable V> action, Path p) {
89+
private static <V extends @Nullable Object> V apply(BiFunction<Path, Path, V> action, Path p) {
8990
var parent = p.getParent();
9091
var fileName = p.getFileName();
9192
if (parent != null && fileName != null) {

0 commit comments

Comments
 (0)