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 d7da2506 Use String#isEmpty() d7da2506 is described below commit d7da25063805998de0e021f1ee8a0925779243f0 Author: Gary David Gregory (Code signing key) <ggreg...@apache.org> AuthorDate: Tue Nov 28 11:08:27 2023 -0500 Use String#isEmpty() --- src/examples/JasminVisitor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/examples/JasminVisitor.java b/src/examples/JasminVisitor.java index e58e45de..16ef15c5 100644 --- a/src/examples/JasminVisitor.java +++ b/src/examples/JasminVisitor.java @@ -72,7 +72,7 @@ public class JasminVisitor extends org.apache.bcel.classfile.EmptyVisitor { final String path = className.substring(0, index + 1).replace('.', File.separatorChar); className = className.substring(index + 1); - if (!path.equals("")) { + if (!path.isEmpty()) { final File f = new File(path); f.mkdirs(); }