@@ -41,7 +40,6 @@ public class BaseFilter implements IFilter { * @param patternBuilder new value of patternBuilder * @param fieldNames new value of fieldNames */ - @SafeVarargs public BaseFilter(Class extends IPatternBuilder> patternBuilder, String... fieldNames) { this(patternBuilder, DEFAULT_VISIBLE_CHAR, DEFAULT_PRIORITY, fieldNames); } @@ -53,7 +51,6 @@ public BaseFilter(Class extends IPatternBuilder> patternBuilder, String... fie * @param visibleCharacters new value of visibleCharacters * @param fieldNames new value of fieldNames */ - @SafeVarargs public BaseFilter(Class extends IPatternBuilder> patternBuilder, int visibleCharacters, String... fieldNames) { this(patternBuilder, visibleCharacters, DEFAULT_PRIORITY, fieldNames); } @@ -67,7 +64,6 @@ public BaseFilter(Class extends IPatternBuilder> patternBuilder, int visibleCh * @param order new value of order * @param fieldNames new value of fieldNames */ - @SafeVarargs public BaseFilter(Class extends IPatternBuilder> patternBuilder, int visibleCharacters, int order, String... fieldNames) { if (patternBuilder == null) { throw new IllegalArgumentException("patternBuilder cannot be null."); @@ -81,7 +77,6 @@ public BaseFilter(Class extends IPatternBuilder> patternBuilder, int visibleCh this.fieldNames = fieldNames; } - /** * Get the value of patternBuilder * @@ -121,4 +116,4 @@ public int getOrder() { public String[] getFieldNames() { return this.fieldNames; } -} +} \ No newline at end of file diff --git a/ejmask-core/src/main/java/com/ebay/ejmask/core/util/CommonUtils.java b/ejmask-core/src/main/java/com/ebay/ejmask/core/util/CommonUtils.java index 022b8ef..a33cb52 100644 --- a/ejmask-core/src/main/java/com/ebay/ejmask/core/util/CommonUtils.java +++ b/ejmask-core/src/main/java/com/ebay/ejmask/core/util/CommonUtils.java @@ -1,5 +1,4 @@ package com.ebay.ejmask.core.util; - /** * Copyright (c) 2023 eBay Inc. *
@@ -16,7 +15,6 @@
* limitations under the License.
*/
-
import java.io.PrintWriter;
import java.io.StringWriter;
import java.lang.reflect.Array;
@@ -89,7 +87,7 @@ public static boolean isAnEmptyArray(Object array) {
* @param array the array to retrieve the length from, may be null
* @return The length of the array, or {@code 0} if the array is {@code null}
*/
- private static int getLength(final Object array) {
+ private static int getLength(Object array) {
return (array == null) ? 0 : Array.getLength(array);
}
@@ -102,7 +100,7 @@ private static int getLength(final Object array) {
* @return {@code true} if the CharSequence is
* not empty and not null and not whitespace only
*/
- public static boolean isNotBlank(final CharSequence cs) {
+ public static boolean isNotBlank(CharSequence cs) {
return !isBlank(cs);
}
@@ -114,8 +112,8 @@ public static boolean isNotBlank(final CharSequence cs) {
* @param cs the CharSequence to check, may be null
* @return {@code true} if the CharSequence is null, empty or whitespace only
*/
- public static boolean isBlank(final CharSequence cs) {
- final int strLen = cs == null ? 0 : cs.length();
+ public static boolean isBlank(CharSequence cs) {
+ int strLen = cs == null ? 0 : cs.length();
if (strLen != 0) {
for (int i = 0; i < strLen; i++) {
if (!Character.isWhitespace(cs.charAt(i))) {
diff --git a/ejmask-extensions/pom.xml b/ejmask-extensions/pom.xml
index f169c27..407bd87 100644
--- a/ejmask-extensions/pom.xml
+++ b/ejmask-extensions/pom.xml
@@ -16,16 +16,6 @@