File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
jablib/src/main/java/org/jabref/logic/ai/util Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 66
77import org .jabref .logic .util .NotificationService ;
88
9- import jakarta .annotation .Nullable ;
109import org .h2 .mvstore .MVStore ;
1110import org .h2 .mvstore .MVStoreException ;
11+ import org .jspecify .annotations .Nullable ;
1212import org .slf4j .Logger ;
1313import 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
You can’t perform that action at this time.
0 commit comments