Use String.contains() instead of String.indexOf().

Resolves #1318.
This commit is contained in:
hduelme
2023-01-14 18:22:18 +01:00
committed by Greg L. Turnquist
parent 7ae57b583e
commit 5a53ed4395

View File

@@ -86,7 +86,7 @@ public class SoapFaultMappingExceptionResolver extends AbstractSoapFaultDefiniti
@SuppressWarnings("unchecked")
private int getDepth(String exceptionMapping, Class<? extends Exception> exceptionClass, int depth) {
if (exceptionClass.getName().indexOf(exceptionMapping) != -1) {
if (exceptionClass.getName().contains(exceptionMapping)) {
return depth;
}
if (exceptionClass.equals(Throwable.class)) {