You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/01/17 14:51:59 UTC
[commons-daemon] branch master updated: Use isEmpty().
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-daemon.git
The following commit(s) were added to refs/heads/master by this push:
new b1c58b7 Use isEmpty().
b1c58b7 is described below
commit b1c58b78238178cd8e7d5d9e4d6265a423d23ea2
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jan 17 09:51:54 2021 -0500
Use isEmpty().
---
src/samples/SimpleApplication.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/samples/SimpleApplication.java b/src/samples/SimpleApplication.java
index 05a3ebd..c1c65e0 100644
--- a/src/samples/SimpleApplication.java
+++ b/src/samples/SimpleApplication.java
@@ -71,7 +71,7 @@ public class SimpleApplication implements Runnable {
}
- if (args.length > 0 && args[0].length() > 0)
+ if (args.length > 0 && !args[0].isEmpty())
port=Integer.parseInt(args[0]);
if (args.length > 1)
app.directory = args[1];