Skip to content

Commit f0a95a8

Browse files
authored
Use jspecify (#13873)
1 parent 2d3cf9d commit f0a95a8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

jablib/src/main/java/org/jabref/logic/ai/ingestion/MVStoreEmbeddingStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
import dev.langchain4j.store.embedding.filter.Filter;
3131
import dev.langchain4j.store.embedding.filter.comparison.IsEqualTo;
3232
import dev.langchain4j.store.embedding.filter.comparison.IsIn;
33-
import jakarta.annotation.Nullable;
3433
import org.h2.mvstore.MVStore;
34+
import org.jspecify.annotations.Nullable;
3535

3636
import static java.util.Comparator.comparingDouble;
3737
import static org.jabref.logic.ai.ingestion.FileEmbeddingsManager.LINK_METADATA_KEY;

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

Lines changed: 3 additions & 3 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,8 +17,8 @@ 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 {
2424
Files.createDirectories(path.getParent());

0 commit comments

Comments
 (0)