From b1c0f79dcde25fc39a659d3cf0e3eaa59c2bea68 Mon Sep 17 00:00:00 2001 From: jhartmann Date: Mon, 15 Jul 2024 14:42:30 +0200 Subject: [PATCH] fix(irs-api):[#538] fix checkstyle --- .../java/org/eclipse/tractusx/irs/component/Tombstone.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/irs-models/src/main/java/org/eclipse/tractusx/irs/component/Tombstone.java b/irs-models/src/main/java/org/eclipse/tractusx/irs/component/Tombstone.java index 933c682eb..de8058c21 100644 --- a/irs-models/src/main/java/org/eclipse/tractusx/irs/component/Tombstone.java +++ b/irs-models/src/main/java/org/eclipse/tractusx/irs/component/Tombstone.java @@ -123,7 +123,8 @@ private static String getRootErrorMessages(final Throwable throwable) { if (cause != null) { Throwable rootCause = cause; int depth = 0; - while (rootCause.getCause() != null || hasSuppressedExceptions(rootCause) || depth > 10) { + final int maxDepth = 10; + while (rootCause.getCause() != null || hasSuppressedExceptions(rootCause) || depth > maxDepth) { if (hasSuppressedExceptions(rootCause)) { rootCause = rootCause.getSuppressed()[0]; } else {