diff --git a/src/main/java/de/thetaphi/forbiddenapis/Signatures.java b/src/main/java/de/thetaphi/forbiddenapis/Signatures.java index fd7b1036..195e599c 100644 --- a/src/main/java/de/thetaphi/forbiddenapis/Signatures.java +++ b/src/main/java/de/thetaphi/forbiddenapis/Signatures.java @@ -221,7 +221,10 @@ private void reportMissingSignatureClasses(Set missingClasses) { sb.append(count == 0 ? " " : ", ").append(s); count++; if (sb.length() >= 70) { - sb.append(",... (and ").append(missingClasses.size() - count).append(" more)."); + int remaining = missingClasses.size() - count; + if (remaining > 0) { + sb.append(",... (and ").append(remaining).append(" more)."); + } break; } }