Skip to content

Commit

Permalink
Replace Map, List, and Set in org.opensearch.common.collect with jav…
Browse files Browse the repository at this point in the history
…a.util references (opensearch-project#717)

Signed-off-by: Hailong Cui <[email protected]>
  • Loading branch information
Hailong-am authored Mar 24, 2023
1 parent c751746 commit 8fe17c7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import org.opensearch.client.RequestOptions
import org.opensearch.client.WarningsHandler
import org.opensearch.client.ResponseException
import org.opensearch.common.Strings
import org.opensearch.common.collect.Set
import org.opensearch.common.io.PathUtils
import org.opensearch.common.settings.Settings
import org.opensearch.core.xcontent.DeprecationHandler
Expand Down Expand Up @@ -179,7 +178,7 @@ abstract class IndexManagementRestTestCase : ODFERestTestCase() {
// We hit a version of ES that doesn't serialize DeleteDataStreamAction.Request#wildcardExpressionsOriginallySpecified field or
// that doesn't support data streams so it's safe to ignore
val statusCode = e.response.statusLine.statusCode
if (!Set.of(404, 405, 500).contains(statusCode)) {
if (!setOf(404, 405, 500).contains(statusCode)) {
throw e
}
}
Expand Down

0 comments on commit 8fe17c7

Please sign in to comment.