3939
4040import org .apache .commons .io .IOUtils ;
4141import org .apache .commons .lang3 .StringUtils ;
42+ import org .apache .commons .lang3 .Strings ;
4243import org .apache .commons .lang3 .math .NumberUtils ;
4344import org .apache .commons .logging .Log ;
4445import org .apache .commons .logging .LogFactory ;
@@ -563,7 +564,7 @@ static boolean selects(final BrowserVersion browserVersion,
563564 final String prefixValue = prefixAttributeCondition .getValue ();
564565 if (prefixAttributeCondition .isCaseInSensitive ()) {
565566 return !org .htmlunit .util .StringUtils .isEmptyString (prefixValue )
566- && StringUtils . startsWithIgnoreCase (
567+ && Strings . CI . startsWith (
567568 element .getAttribute (prefixAttributeCondition .getLocalName ()), prefixValue );
568569 }
569570 return !org .htmlunit .util .StringUtils .isEmptyString (prefixValue )
@@ -574,7 +575,7 @@ static boolean selects(final BrowserVersion browserVersion,
574575 final String suffixValue = suffixAttributeCondition .getValue ();
575576 if (suffixAttributeCondition .isCaseInSensitive ()) {
576577 return !org .htmlunit .util .StringUtils .isEmptyString (suffixValue )
577- && StringUtils . endsWithIgnoreCase (
578+ && Strings . CI . endsWith (
578579 element .getAttribute (suffixAttributeCondition .getLocalName ()), suffixValue );
579580 }
580581 return !org .htmlunit .util .StringUtils .isEmptyString (suffixValue )
@@ -585,7 +586,7 @@ static boolean selects(final BrowserVersion browserVersion,
585586 final String substringValue = substringAttributeCondition .getValue ();
586587 if (substringAttributeCondition .isCaseInSensitive ()) {
587588 return !org .htmlunit .util .StringUtils .isEmptyString (substringValue )
588- && StringUtils . containsIgnoreCase (
589+ && Strings . CI . contains (
589590 element .getAttribute (substringAttributeCondition .getLocalName ()), substringValue );
590591 }
591592 return !org .htmlunit .util .StringUtils .isEmptyString (substringValue )
0 commit comments