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-bcel.git
The following commit(s) were added to refs/heads/master by this push:
new 284c90d Use isEmpty().
284c90d is described below
commit 284c90d59844af772602595d1291b40433c80598
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Jan 17 09:35:12 2021 -0500
Use isEmpty().
---
src/main/java/org/apache/bcel/classfile/Utility.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/bcel/classfile/Utility.java
b/src/main/java/org/apache/bcel/classfile/Utility.java
index c9112fb..8d3b956 100644
--- a/src/main/java/org/apache/bcel/classfile/Utility.java
+++ b/src/main/java/org/apache/bcel/classfile/Utility.java
@@ -717,7 +717,7 @@ public abstract class Utility {
buf.setLength(buf.length() - 2);
}
buf.append(")");
- return access + ((access.length() > 0) ? " " : "") + // May be an
empty string
+ return access + ((!access.isEmpty()) ? " " : "") + // May be an empty
string
type + " " + name + buf.toString();
}