framework/base/src/org/ofbiz/base/util/UtilMisc.java
UtilMisc
has 257 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class UtilMisc {
private static final Debug.OfbizLogger module = Debug.getOfbizLogger(java.lang.invoke.MethodHandles.lookup().lookupClass());
private static final UtilMisc INSTANCE = new UtilMisc(); // SCIPIO: This is for FreeMarkerWorker (only!)
Avoid deeply nested control flow statements. Open
Open
if (filterLocaleStrings.contains(currentLocale.toString())) {
return currentCandidateLocale;
}
Avoid too many return
statements within this method. Open
Open
return UtilGenerics.cast(Collections.emptyNavigableSet());
Avoid too many return
statements within this method. Open
Open
return UtilGenerics.cast(Collections.emptySortedSet());
Avoid too many return
statements within this method. Open
Open
return UtilGenerics.cast(Collections.emptySet());
Avoid too many return
statements within this method. Open
Open
return currentCandidateLocale;
Avoid too many return
statements within this method. Open
Open
return null;
Avoid too many return
statements within this method. Open
Open
return currentLocale;
Avoid too many return
statements within this method. Open
Open
return asLocale(currentLocaleObject);
Avoid too many return
statements within this method. Open
Open
return origFilterLocale;
Avoid too many return
statements within this method. Open
Open
return null;
Avoid too many return
statements within this method. Open
Open
return UtilGenerics.cast(Collections.emptyList());
Avoid too many return
statements within this method. Open
Open
return UtilGenerics.cast(!collection.isEmpty() ? Collections.unmodifiableList(UtilGenerics.cast(collection)) : Collections.emptyList());