Skip to content

Commit 95b3a0c

Browse files
committed
jbang test fix
1 parent 7bafe6e commit 95b3a0c

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

jablib/src/main/java/org/jabref/logic/ai/util/MVStoreBase.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
import org.jabref.logic.util.NotificationService;
88

9-
import jakarta.annotation.Nullable;
109
import org.h2.mvstore.MVStore;
1110
import org.h2.mvstore.MVStoreException;
11+
import org.jspecify.annotations.Nullable;
1212
import org.slf4j.Logger;
1313
import org.slf4j.LoggerFactory;
1414

@@ -17,13 +17,13 @@ public abstract class MVStoreBase implements AutoCloseable {
1717

1818
protected MVStore mvStore;
1919

20-
public MVStoreBase(Path path, NotificationService dialogService) {
21-
@Nullable Path mvStorePath = path;
20+
public MVStoreBase(@Nullable Path path, NotificationService dialogService) {
21+
Path mvStorePath = path;
2222

2323
try {
24+
assert path != null;
2425
Files.createDirectories(path.getParent());
25-
} catch (
26-
IOException e) {
26+
} catch (IOException e) {
2727
LOGGER.error(errorMessageForOpening(), e);
2828
dialogService.notify(errorMessageForOpeningLocalized());
2929
mvStorePath = null;
@@ -34,8 +34,7 @@ public MVStoreBase(Path path, NotificationService dialogService) {
3434
.autoCommitDisabled()
3535
.fileName(mvStorePath == null ? null : mvStorePath.toString())
3636
.open();
37-
} catch (
38-
MVStoreException e) {
37+
} catch (MVStoreException e) {
3938
this.mvStore = new MVStore.Builder()
4039
.autoCommitDisabled()
4140
.fileName(null) // creates an in memory store

0 commit comments

Comments
 (0)