summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/satserver
diff options
context:
space:
mode:
authorSimon Rettberg2017-08-16 18:25:34 +0200
committerSimon Rettberg2017-08-16 18:25:34 +0200
commit888633c5df6c6972389c879ac8e55b1c062b97eb (patch)
treee629998cde3514dabfd4b9a91879e2e66544c48f /src/main/java/org/openslx/satserver
parentFix deprecation warning (diff)
downloadtmlite-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.java5
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();
+ }
+
}