Skip to content

Commit

Permalink
- Simplified code
Browse files Browse the repository at this point in the history
  • Loading branch information
cdanger committed May 20, 2024
1 parent 887a9e2 commit c00106b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ public JaxrsPdpResource(final PdpEngineConfiguration pdpConf) throws IllegalArgu
final PdpBundle pdpBundle = new PdpBundle(pdpConf);
this.xmlPdpEngineAdapter = pdpBundle.getXacmlJaxbIoAdapter();
final PdpEngineInoutAdapter<JSONObject, JSONObject> defaultJsonPdpEngineAdapter = pdpBundle.getDefaultJsonIoAdapter();
this.defaultJsonRequestEvalFunction = defaultJsonPdpEngineAdapter == null? json -> {throw new NotSupportedException();}: json -> defaultJsonPdpEngineAdapter.evaluate(json);
this.defaultJsonRequestEvalFunction = defaultJsonPdpEngineAdapter == null? json -> {throw new NotSupportedException();}: defaultJsonPdpEngineAdapter::evaluate;
final PdpEngineInoutAdapter<JSONObject, JSONObject> xacmlJsonPdpEngineAdapter = pdpBundle.getXacmlJsonIoAdapter();
this.xacmlJsonRequestEvalFunction = xacmlJsonPdpEngineAdapter == null? json -> {throw new NotSupportedException();}: json -> xacmlJsonPdpEngineAdapter.evaluate(json);
this.xacmlJsonRequestEvalFunction = xacmlJsonPdpEngineAdapter == null? json -> {throw new NotSupportedException();}: xacmlJsonPdpEngineAdapter::evaluate;
}

/**
Expand Down

0 comments on commit c00106b

Please sign in to comment.