/** * @param m the risk method to use * @param toDefault if true, than the default value is returned * @return an array containing the limits (or null). */ protected Number[] getLimits(final RiskMethod m, final boolean toDefault) { Number[] limits; if (m == PreferenceManager.getRiskMethod(owner, toDefault)) { limits = PreferenceManager.getLimits(owner, toDefault); } else { limits = new Number[] {0, 0}; } return limits; }