Fix format typos

This commit is contained in:
Gary Gregory 2022-10-15 17:54:09 -04:00
parent 9aba7b4583
commit 273a6bd20e
1 changed files with 2 additions and 2 deletions

View File

@ -353,7 +353,7 @@ public class RegExUtils {
* @see java.util.regex.Pattern
*/
public static String replaceFirst(final String text, final Pattern regex, final String replacement) {
if (text == null || regex == null|| replacement == null ) {
if (text == null || regex == null || replacement == null) {
return text;
}
return regex.matcher(text).replaceFirst(replacement);
@ -405,7 +405,7 @@ public class RegExUtils {
* @see java.util.regex.Pattern#DOTALL
*/
public static String replaceFirst(final String text, final String regex, final String replacement) {
if (text == null || regex == null|| replacement == null ) {
if (text == null || regex == null || replacement == null) {
return text;
}
return text.replaceFirst(regex, replacement);