Skip to content

Commit

Permalink
use import instead of fully qualified name
Browse files Browse the repository at this point in the history
Signed-off-by: zane-neo <[email protected]>
  • Loading branch information
zane-neo committed Sep 25, 2023
1 parent 027b4ee commit 9ec0bd8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import com.google.common.collect.ImmutableMap;
import org.opensearch.ml.common.output.model.ModelTensor;
import org.opensearch.ml.common.utils.StringUtils;
import org.opensearch.script.Script;
import org.opensearch.script.ScriptService;
import org.opensearch.script.ScriptType;
Expand All @@ -29,7 +30,7 @@ public static List<ModelTensor> executeBuildInPostProcessFunction(List<List<Floa
}

public static Optional<String> executePostProcessFunction(ScriptService scriptService, String postProcessFunction, String resultJson) {
Map<String, Object> result = org.opensearch.ml.common.utils.StringUtils.fromJson(resultJson, "result");
Map<String, Object> result = StringUtils.fromJson(resultJson, "result");
if (postProcessFunction != null) {
return Optional.ofNullable(executeScript(scriptService, postProcessFunction, result));
}
Expand Down

0 comments on commit 9ec0bd8

Please sign in to comment.