diff options
author | Simon Rettberg | 2017-08-16 18:25:34 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-08-16 18:25:34 +0200 |
commit | 888633c5df6c6972389c879ac8e55b1c062b97eb (patch) | |
tree | e629998cde3514dabfd4b9a91879e2e66544c48f /src/main/java/org/openslx/satserver | |
parent | Fix deprecation warning (diff) | |
download | tmlite-bwlp-888633c5df6c6972389c879ac8e55b1c062b97eb.tar.gz tmlite-bwlp-888633c5df6c6972389c879ac8e55b1c062b97eb.tar.xz tmlite-bwlp-888633c5df6c6972389c879ac8e55b1c062b97eb.zip |
Util: Add isEmpty helper for strings
Diffstat (limited to 'src/main/java/org/openslx/satserver')
-rw-r--r-- | src/main/java/org/openslx/satserver/util/Util.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/openslx/satserver/util/Util.java b/src/main/java/org/openslx/satserver/util/Util.java index fcf10ed..5979603 100644 --- a/src/main/java/org/openslx/satserver/util/Util.java +++ b/src/main/java/org/openslx/satserver/util/Util.java @@ -87,4 +87,9 @@ public class Util return startsWith( dir, DEFAULT_ALLOWED_DIRS ); } + public static boolean isEmpty( String s ) + { + return s == null || s.isEmpty(); + } + } |