Skip to content

Commit a99e92a

Browse files
authored
Add "preferences" constant to ServiceLocator initialization (#14810)
1 parent d8c1532 commit a99e92a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jabsrv/src/main/java/org/jabref/http/server/Server.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public HttpServer run(SrvStateManager srvStateManager, URI uri) {
9595

9696
private HttpServer startServer(ServiceLocator serviceLocator, URI uri) {
9797
ServiceLocatorUtilities.addOneConstant(serviceLocator, new FormatterService());
98-
ServiceLocatorUtilities.addOneConstant(serviceLocator, preferences);
98+
ServiceLocatorUtilities.addOneConstant(serviceLocator, preferences, "preferences", CliPreferences.class);
9999
ServiceLocatorUtilities.addFactoryConstants(serviceLocator, new GsonFactory());
100100

101101
// see https://stackoverflow.com/a/33794265/873282

0 commit comments

Comments
 (0)