Skip to content

Commit

Permalink
Merge pull request #148 from dweiss/bug-ellipsis
Browse files Browse the repository at this point in the history
Do not emit 'and 0 more' in ignored signatures message
  • Loading branch information
uschindler authored Oct 19, 2018
2 parents 5fdfd9d + 374ddba commit 91340a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/de/thetaphi/forbiddenapis/Signatures.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,10 @@ private void reportMissingSignatureClasses(Set<String> 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;
}
}
Expand Down

0 comments on commit 91340a2

Please sign in to comment.