From 532ff8e6fef2e66fbf2288e3c57bbcdec04d0217 Mon Sep 17 00:00:00 2001 From: Patrick Gotthard Date: Tue, 13 May 2014 19:28:52 +0200 Subject: [PATCH] Formatted and cleaned up sources --- src/main/java/com/rometools/utils/Alternatives.java | 2 +- src/main/java/com/rometools/utils/Integers.java | 2 +- src/main/java/com/rometools/utils/Lists.java | 6 ++++-- src/main/java/com/rometools/utils/Strings.java | 12 ++++++++---- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/rometools/utils/Alternatives.java b/src/main/java/com/rometools/utils/Alternatives.java index cf8fba2..0666233 100644 --- a/src/main/java/com/rometools/utils/Alternatives.java +++ b/src/main/java/com/rometools/utils/Alternatives.java @@ -7,7 +7,7 @@ public final class Alternatives { /** * Returns the first object that is not null - * + * * @param objects The objects to process * @return The first value that is not null. null when there is no not-null value */ diff --git a/src/main/java/com/rometools/utils/Integers.java b/src/main/java/com/rometools/utils/Integers.java index ec5ca85..4046eb9 100644 --- a/src/main/java/com/rometools/utils/Integers.java +++ b/src/main/java/com/rometools/utils/Integers.java @@ -7,7 +7,7 @@ public final class Integers { /** * Converts a String into an Integer. - * + * * @param s The String to convert, may be null * @return The parsed Integer or null when parsing is not possible */ diff --git a/src/main/java/com/rometools/utils/Lists.java b/src/main/java/com/rometools/utils/Lists.java index 3cbdc10..354388b 100644 --- a/src/main/java/com/rometools/utils/Lists.java +++ b/src/main/java/com/rometools/utils/Lists.java @@ -69,11 +69,13 @@ public final class Lists { } /** - * Checks whether the list has the given size. A null list is treated like a list without entries. + * Checks whether the list has the given size. A null list is treated like a list without + * entries. * * @param list The list to check * @param size The size to check - * @return true when the list has the given size or when size = 0 and the list is null, false otherwise + * @return true when the list has the given size or when size = 0 and the list is null, false + * otherwise */ public static boolean sizeIs(final List list, final int size) { if (size == 0) { diff --git a/src/main/java/com/rometools/utils/Strings.java b/src/main/java/com/rometools/utils/Strings.java index 3ac0697..47102c6 100644 --- a/src/main/java/com/rometools/utils/Strings.java +++ b/src/main/java/com/rometools/utils/Strings.java @@ -62,10 +62,12 @@ public final class Strings { } /** - * Removes the whitespace at the beginning and end of a String. When the String only contains whitespace, it returns null. + * Removes the whitespace at the beginning and end of a String. When the String only contains + * whitespace, it returns null. * * @param s The String to trim, may be null - * @return null when the input String is null or does only contain whitespace, the trimmed String otherwise + * @return null when the input String is null or does only contain whitespace, the trimmed + * String otherwise */ public static String trimToNull(final String s) { final String trimmed = trim(s); @@ -77,10 +79,12 @@ public final class Strings { } /** - * Removes the whitespace at the beginning and end of a String. When the String only contains whitespace, it returns null. + * Removes the whitespace at the beginning and end of a String. When the String only contains + * whitespace, it returns null. * * @param s The String to trim, may be null - * @return null when the input String is null or does only contain whitespace, the trimmed String otherwise + * @return null when the input String is null or does only contain whitespace, the trimmed + * String otherwise */ public static String trimToEmpty(final String s) { final String trimmed = trim(s);