Skip to content

Commit 39dd581

Browse files
committed
Don't build a String when it's not needed
1 parent 6b2517c commit 39dd581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public boolean isDone() {
106106
* checked exception
107107
*/
108108
static Throwable checkedException(final Throwable ex) {
109-
Validate.isTrue(ExceptionUtils.isChecked(ex), "Not a checked exception: " + ex);
109+
Validate.isTrue(ExceptionUtils.isChecked(ex), "Not a checked exception: %s", ex);
110110
return ex;
111111
}
112112

0 commit comments

Comments
 (0)