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 (#717) (#719)

Signed-off-by: Hailong Cui <ihailong@amazon.com>
(cherry picked from commit 8fe17c7)

Co-authored-by: Hailong Cui <ihailong@amazon.com>
  • Loading branch information
opensearch-trigger-bot[bot] and Hailong-am authored Mar 24, 2023
1 parent d357c10 commit 1e278d0
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.common.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 1e278d0

Please sign in to comment.