Skip to content

Commit

Permalink
fix: replaced Object.length()==0 with Object.isEmpty() in CommandLine
Browse files Browse the repository at this point in the history
Signed-off-by: leulad <[email protected]>
  • Loading branch information
leulad authored Jul 4, 2024
1 parent 1f2b80a commit bad7998
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class CommandLine {
private CommandLine() { }

public static List<String> translateCommandline(String toProcess) {
if (toProcess == null || toProcess.length() == 0) {
if (toProcess == null || toProcess.isEmpty()) {
//no command? no string
return Collections.emptyList();
}
Expand Down

0 comments on commit bad7998

Please sign in to comment.