Showing 4,841 of 7,782 total issues
Method init
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void init() throws ServletException {
final ServletContext ctx = getServletContext();
final ServletConfig config = getServletConfig();
String param = config.getInitParameter("compress");
if (param != null)
Method visit
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void visit(Node node) throws ELException {
if (node instanceof AstFunction) {
AstFunction funcNode = (AstFunction) node;
Method setValue
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void setValue(ELContext context, Object base, Object property,
Object value) {
if (context == null) {
throw new NullPointerException();
Method getType
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public Class<?> getType(ELContext context, Object base, Object property) {
if (context == null) {
throw new NullPointerException();
}
Method render
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void render(Listitem item, Object obj, int index)
throws Exception {
if (item instanceof Listgroup) {
FoodGroupInfo groupInfo = (FoodGroupInfo) obj;
Food food = groupInfo.getFirstChild();
Method filterOutShadows
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static final Component[] filterOutShadows(Component[] shadows) {
if (shadows == null || shadows.length == 0)
return shadows;
int length = shadows.length;
Method outZkTags
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static String outZkTags(Execution exec, WebApp wapp, String deviceType) {
if (exec.getAttribute(ATTR_ZK_TAGS_GENERATED) != null)
return null;
exec.setAttribute(ATTR_ZK_TAGS_GENERATED, Boolean.TRUE);
Method remove0
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private boolean remove0(String name, Scope ctxscope) {
Map<String, EventQueue> eqs;
Object ctxLock = Scopes.getLockForScopeIfAny(ctxscope);
synchronized (ctxLock) {
Method handleError
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void handleError(Session sess, RenderRequest request, RenderResponse response, String path, Throwable err,
String msg) throws PortletException, IOException {
// ZK-3679
Throwable cause;
if (err instanceof OperationException && (cause = err.getCause()) instanceof Expectable)
Method recycleDesktop
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void recycleDesktop(Execution exec, Page page, Writer out) throws IOException {
PerformanceMeter pfmeter = page.getDesktop().getWebApp().getConfiguration().getPerformanceMeter();
final long startTime = pfmeter != null ? System.currentTimeMillis() : 0;
final String pfReqId = pfmeter != null ? meterLoadStart(pfmeter, exec, startTime) : null;
Method getVariableImpl
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected Variable getVariableImpl(String name, boolean recurse) throws UtilEvalError {
//Note: getVariableImpl returns null if not defined,
//while getVariable return Primitive.VOID if not defined
//Tom M Yeh: 20060606:
Method coerceToUi
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public Object coerceToUi(Object val, Component comp, BindContext ctx) {
Tree tree = (Tree) comp;
final TreeModel<Object> model = tree.getModel();
if (model != null && !(model instanceof TreeSelectableModel)) {
Method processFormLoadBindings
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void processFormLoadBindings(Component comp, String formId, Annotation ann) {
String loadExpr = null;
final List<String> beforeCmds = new ArrayList<String>();
final List<String> afterCmds = new ArrayList<String>();
Method collectSaveFormBinding
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void collectSaveFormBinding(Component comp, SaveFormBinding binding, String command, Event evt,
Set<Property> validates) {
//ZK-3185: Enable form validation with reference and collection binding
String formId = binding.getFormId();
Component formComp = binding.getComponent();
Method addPropertyInitBinding0
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void addPropertyInitBinding0(Component comp, String attr, String initExpr, Map<String, Object> bindingArgs,
String converterExpr, Map<String, Object> converterArgs) {
final ComponentCtrl compCtrl = (ComponentCtrl) comp;
final Annotation ann = AnnotationUtil.getSystemAnnotation(compCtrl, attr);
Method load
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void load(BindContext ctx) {
final Component comp = getComponent(); //ctx.getComponent();
final BindEvaluatorX eval = getBinder().getEvaluatorX();
final BindingExecutionInfoCollector collector = ((BinderCtrl) getBinder()).getBindingExecutionInfoCollector();
Method ungroup
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void ungroup(boolean ascending) {
final Comparator<?> cmpr = ascending ? _sortAsc : _sortDsc;
if (cmpr != null) {
final Grid grid = getGrid();
Method getVisibleItemsDFS
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private <T extends Component> boolean getVisibleItemsDFS(List<T> list, Map<Treeitem, Boolean> map, int[] data) {
for (T cmp : list) {
if (cmp instanceof Treeitem) {
if (data[4] >= data[0])
return false; // full
Method doSort
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("unchecked")
/*package*/ boolean doSort(boolean ascending) {
final Comparator cmpr = ascending ? _sortAsc : _sortDsc;
if (cmpr == null)
return false;
Method addVisibleItemCount
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
/*package*/ void addVisibleItemCount(int count) {
if (count != 0) {
_visibleItemCount += count;
final Grid grid = getGrid();
if (grid != null) {