File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
main/java/com/atomgraph/linkeddatahub/server/filter/request
test/java/com/atomgraph/linkeddatahub/server/filter/request Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ public class ProxyRequestFilter implements ContainerRequestFilter
9494
9595 @ Inject com .atomgraph .linkeddatahub .Application system ;
9696 @ Inject MediaTypes mediaTypes ;
97- @ Inject Optional <Ontology > ontology ;
97+ @ Inject jakarta . inject . Provider < Optional <Ontology > > ontology ;
9898 @ Context Request request ;
9999
100100 @ Override
@@ -343,7 +343,7 @@ public com.atomgraph.linkeddatahub.Application getSystem()
343343 */
344344 public Optional <Ontology > getOntology ()
345345 {
346- return ontology ;
346+ return ontology . get () ;
347347 }
348348
349349 /**
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ public void setUp()
8888 when (system .getDataManager ()).thenReturn (dataManager );
8989 when (dataManager .isMapped (anyString ())).thenReturn (false );
9090 when (system .isEnableLinkedDataProxy ()).thenReturn (false );
91- filter .ontology = Optional .empty ();
91+ filter .ontology = () -> Optional .empty ();
9292 }
9393
9494 /**
You can’t perform that action at this time.
0 commit comments