Skip to content

Commit

Permalink
Fix minor bug in JsWrapperFactoryProvider logic
Browse files Browse the repository at this point in the history
  • Loading branch information
shanggeeth committed Jan 31, 2024
1 parent ad97840 commit c54d015
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import org.wso2.carbon.identity.application.authentication.framework.config.model.graph.JsBaseGraphBuilderFactory;
import org.wso2.carbon.identity.application.authentication.framework.config.model.graph.JsGraphBuilderFactory;
import org.wso2.carbon.identity.application.authentication.framework.config.model.graph.graaljs.JsGraalGraphBuilderFactory;
import org.wso2.carbon.identity.application.authentication.framework.config.model.graph.openjdk.nashorn.JsOpenJdkNashornGraphBuilderFactory;
import org.wso2.carbon.identity.application.authentication.framework.util.FrameworkUtils;

Expand All @@ -37,7 +38,7 @@ private JsWrapperFactoryProvider() {
JsBaseGraphBuilderFactory jsGraphBuilderFactory = FrameworkUtils.createJsGraphBuilderFactoryFromConfig();
if (jsGraphBuilderFactory instanceof JsOpenJdkNashornGraphBuilderFactory) {
jsWrapperBaseFactory = new JsOpenJdkNashornWrapperFactory();
} else if (jsGraphBuilderFactory instanceof JsGraalWrapperFactory) {
} else if (jsGraphBuilderFactory instanceof JsGraalGraphBuilderFactory) {
jsWrapperBaseFactory = new JsGraalWrapperFactory();
} else {
jsWrapperBaseFactory = new JsWrapperFactory();
Expand Down

0 comments on commit c54d015

Please sign in to comment.