diff --git a/src/main/java/org/apache/commons/lang3/exception/DefaultExceptionContext.java b/src/main/java/org/apache/commons/lang3/exception/DefaultExceptionContext.java index 07fd4a0af..ee58156d6 100644 --- a/src/main/java/org/apache/commons/lang3/exception/DefaultExceptionContext.java +++ b/src/main/java/org/apache/commons/lang3/exception/DefaultExceptionContext.java @@ -100,13 +100,11 @@ public class DefaultExceptionContext implements ExceptionContext, Serializable { if (baseMessage != null) { buffer.append(baseMessage); } - if (!contextValues.isEmpty()) { if (buffer.length() > 0) { buffer.append('\n'); } buffer.append("Exception Context:\n"); - int i = 0; for (final Pair pair : contextValues) { buffer.append("\t[");