You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/12/09 13:24:16 UTC
(commons-lang) 02/02: Don't build a String when it's not needed
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
commit 39dd58102e2cf2fdde6af5f2aa6ad040d08807e2
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Dec 9 08:24:09 2024 -0500
Don't build a String when it's not needed
---
src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java b/src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java
index 6351726b6..080cd1df0 100644
--- a/src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java
+++ b/src/main/java/org/apache/commons/lang3/concurrent/ConcurrentUtils.java
@@ -106,7 +106,7 @@ public class ConcurrentUtils {
* checked exception
*/
static Throwable checkedException(final Throwable ex) {
- Validate.isTrue(ExceptionUtils.isChecked(ex), "Not a checked exception: " + ex);
+ Validate.isTrue(ExceptionUtils.isChecked(ex), "Not a checked exception: %s", ex);
return ex;
}