Reformat and correct the indentation

This commit is contained in:
Cavero Barca 2020-02-28 23:53:33 +01:00
parent 647e4ffe0e
commit f5a18c6dca
1 changed files with 19 additions and 16 deletions

View File

@ -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