Skip to content

Commit

Permalink
Use String#isEmpty()
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Nov 28, 2023
1 parent aa3c754 commit d7da250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/examples/JasminVisitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static void main(final String[] argv) throws Exception {
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();
}
Expand Down

0 comments on commit d7da250

Please sign in to comment.