8274949: Use String.contains() instead of String.indexOf() in java.base

Reviewed-by: weijun, dfuchs, vtewari, lancea
This commit is contained in:
Andrey Turbanov 2021-11-19 18:48:06 +00:00 committed by Roger Riggs
parent 09e8c8c64a
commit 6677554374
17 changed files with 35 additions and 38 deletions

View file

@ -520,7 +520,7 @@ public class AlgorithmId implements Serializable, DerEncoder {
}
// unknown algorithm oids
if (name.indexOf(".") == -1) {
if (!name.contains(".")) {
// see if there is a matching oid string alias mapping from
// 3rd party providers
name = name.toUpperCase(Locale.ENGLISH);