Skip to content

Commit 7cc0a08

Browse files
committed
apply spotless
Signed-off-by: xinyual <xinyual@amazon.com>
1 parent 5c1b3da commit 7cc0a08

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ml-algorithms/src/main/java/org/opensearch/ml/engine/tools/AgentModelsSearcher.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import org.opensearch.search.builder.SearchSourceBuilder;
1515

1616
public class AgentModelsSearcher {
17-
private Set<String> relatedModelIdSet;
17+
private final Set<String> relatedModelIdSet;
1818

1919
public AgentModelsSearcher(Map<String, Tool.Factory> toolFactories) {
2020
relatedModelIdSet = new HashSet<>();

plugin/src/main/java/org/opensearch/ml/action/models/DeleteModelTransportAction.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public class DeleteModelTransportAction extends HandledTransportAction<ActionReq
9191

9292
ModelAccessControlHelper modelAccessControlHelper;
9393

94-
AgentModelsSearcher agentModelsSearcher;
94+
final AgentModelsSearcher agentModelsSearcher;
9595

9696
@Inject
9797
public DeleteModelTransportAction(
@@ -492,7 +492,7 @@ private <T> List<String> findRelevantPipelines(
492492
}
493493

494494
private Boolean searchThroughConfig(Object searchCandidate, String candidateId, String targetModelKey) {
495-
Boolean flag = false;
495+
boolean flag = false;
496496
if (searchCandidate instanceof String
497497
&& Objects.equals(targetModelKey, PIPELINE_TARGET_MODEL_KEY)
498498
&& Objects.equals(candidateId, searchCandidate)) {

0 commit comments

Comments
 (0)