summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/funcutils/StringUtils.java
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2017-03-25 14:07:24 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2017-03-25 14:07:24 -0400
commit674d9769821775484fe6913b93c650189fbedfed (patch)
treeeebef3fe254ee49a7f12f24ea68fab8570096219 /BJC-Utils2/src/main/java/bjc/utils/funcutils/StringUtils.java
parent42a897dae1bfa58ab665f5012c2ac160316bcb75 (diff)
General cleanup
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/funcutils/StringUtils.java')
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/funcutils/StringUtils.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/funcutils/StringUtils.java b/BJC-Utils2/src/main/java/bjc/utils/funcutils/StringUtils.java
index 51be875..a35253a 100644
--- a/BJC-Utils2/src/main/java/bjc/utils/funcutils/StringUtils.java
+++ b/BJC-Utils2/src/main/java/bjc/utils/funcutils/StringUtils.java
@@ -24,8 +24,7 @@ public class StringUtils {
public static boolean containsOnly(String input, String regex) {
if (input == null)
throw new NullPointerException("Input must not be null");
- else if (regex == null)
- throw new NullPointerException("Regex must not be null");
+ else if (regex == null) throw new NullPointerException("Regex must not be null");
/*
* This regular expression is fairly simple.
@@ -78,7 +77,7 @@ public class StringUtils {
* @param comma
* The string to use as a comma
*
- * @return
+ * @return The sequence as an English list.
*/
public static String toEnglishList(Object[] objects, String join, String comma) {
if (objects == null) {
@@ -141,7 +140,7 @@ public class StringUtils {
* The string to use for separating the last element from
* the rest.
*
- * @return
+ * @return The sequence as an English list.
*/
public static String toEnglishList(Object[] objects, String join) {
return toEnglishList(objects, join, ",");
@@ -155,7 +154,7 @@ public class StringUtils {
* @param and
* Whether to use 'and' or 'or'.
*
- * @return
+ * @return The sequence as an English list.
*/
public static String toEnglishList(Object[] objects, boolean and) {
if (and) {