framework/base/src/org/ofbiz/base/util/UtilValidate.java
UtilValidate
has 125 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public final class UtilValidate {
//private static final Debug.OfbizLogger module = Debug.getOfbizLogger(java.lang.invoke.MethodHandles.lookup().lookupClass());
private UtilValidate() {}
Consider simplifying this complex logical expression. Open
Open
if (isMasterCard(cc) || isVisa(cc) || isAmericanExpress(cc) || isDinersClub(cc) ||
isDiscover(cc) || isEnRoute(cc) || isJCB(cc) || isSolo(cc)|| isSwitch (cc)|| isVisaElectron(cc)) {
return true;
}
Method isFloat
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static boolean isFloat(String s, boolean allowNegative, boolean allowPositive, int minDecimal, int maxDecimal) {
Method isDouble
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static boolean isDouble(String s, boolean allowNegative, boolean allowPositive, int minDecimal, int maxDecimal) {
Avoid too many return
statements within this method. Open
Open
return passed.before(now);
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return "CCT_ENROUTE";
Avoid too many return
statements within this method. Open
Open
return "CCT_JCB";
Avoid too many return
statements within this method. Open
Open
return "CCT_SOLO";
Avoid too many return
statements within this method. Open
Open
return "[question mark found at position " + (fieldStr.indexOf('?') + 1) + "]";
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return "[less-than sign found at position " + (fieldStr.indexOf('<') + 1) + "]";
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return "CCT_DISCOVER";
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return "CCT_SWITCH";
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return "[greater-than sign found at position " + (fieldStr.indexOf('>') + 1) + "]";
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return "CCT_AMERICANEXPRESS";
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return "[forward-slash found at position " + (fieldStr.indexOf('/') + 1) + "]";
Avoid too many return
statements within this method. Open
Open
return "Unknown";
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return "[back-slash found at position " + (fieldStr.indexOf('\\') + 1) + "]";
Avoid too many return
statements within this method. Open
Open
return "CCT_DINERSCLUB";
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return passed.after(now);
Avoid too many return
statements within this method. Open
Open
return "CCT_VISAELECTRON";
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return null;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return false;