Reformat and correct the indentation
@@ -84,11 +84,13 @@ public class LTrimRTrim {
}
public static String patternLtrim(String s) {
- return LTRIM.matcher(s).replaceAll("");
+ return LTRIM.matcher(s)
+ .replaceAll("");
}
public static String patternRtrim(String s) {
- return RTRIM.matcher(s).replaceAll("");
+ return RTRIM.matcher(s)
+ .replaceAll("");
}
// Pattern matches() with replaceAll
@@ -100,13 +102,14 @@ public class LTrimRTrim {
return checkStrings(ltrim, rtrim);
}
-
public static String guavaLtrim(String s) {
- return CharMatcher.whitespace().trimLeadingFrom(s);
+ return CharMatcher.whitespace()
+ .trimLeadingFrom(s);
}
public static String guavaRtrim(String s) {
- return CharMatcher.whitespace().trimTrailingFrom(s);
+ return CharMatcher.whitespace()
+ .trimTrailingFrom(s);
}
// Guava CharMatcher trimLeadingFrom / trimTrailingFrom
