We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5fdfd9d + 374ddba commit 91340a2Copy full SHA for 91340a2
src/main/java/de/thetaphi/forbiddenapis/Signatures.java
@@ -221,7 +221,10 @@ private void reportMissingSignatureClasses(Set<String> missingClasses) {
221
sb.append(count == 0 ? " " : ", ").append(s);
222
count++;
223
if (sb.length() >= 70) {
224
- sb.append(",... (and ").append(missingClasses.size() - count).append(" more).");
+ int remaining = missingClasses.size() - count;
225
+ if (remaining > 0) {
226
+ sb.append(",... (and ").append(remaining).append(" more).");
227
+ }
228
break;
229
}
230
0 commit comments