[testng] 182/355: Use "new" Java6 method
Eugene Zhukov
eugene-guest at moszumanska.debian.org
Tue Aug 18 10:20:03 UTC 2015
This is an automated email from the git hooks/post-receive script.
eugene-guest pushed a commit to annotated tag OpenBSD
in repository testng.
commit 8ed2ceb7a8a2925887875a1320e61bf6eff3825e
Author: Julien Herr <julien.herr at alcatel-lucent.com>
Date: Mon Apr 13 11:05:48 2015 +0200
Use "new" Java6 method
---
src/main/java/org/testng/collections/Objects.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/testng/collections/Objects.java b/src/main/java/org/testng/collections/Objects.java
index a3a4a81..547a4fa 100644
--- a/src/main/java/org/testng/collections/Objects.java
+++ b/src/main/java/org/testng/collections/Objects.java
@@ -64,7 +64,7 @@ public final class Objects {
private String s(Object o) {
return o != null
- ? ("".equals(o.toString()) ? "\"\"" : o.toString())
+ ? (o.toString().isEmpty() ? "\"\"" : o.toString())
: "{null}";
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/testng.git
More information about the pkg-java-commits
mailing list