Showing 4,841 of 7,782 total issues

Method init has 31 lines of code (exceeds 25 allowed). Consider refactoring.
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

        public void visit(Node node) throws ELException {
            if (node instanceof AstFunction) {
    
                AstFunction funcNode = (AstFunction) node;
    
    Severity: Minor
    Found in zel/src/main/java/org/zkoss/zel/impl/lang/ExpressionBuilder.java - About 1 hr to fix

      Method setValue has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public void setValue(ELContext context, Object base, Object property,
                  Object value) {
      
              if (context == null) {
                  throw new NullPointerException();
      Severity: Minor
      Found in zel/src/main/java/org/zkoss/zel/BeanNameELResolver.java - About 1 hr to fix

        Method getType has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public Class<?> getType(ELContext context, Object base, Object property) {
                if (context == null) {
                    throw new NullPointerException();
                }
        
        Severity: Minor
        Found in zel/src/main/java/org/zkoss/zel/StaticFieldELResolver.java - About 1 hr to fix

          Method render has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          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

                public static final Component[] filterOutShadows(Component[] shadows) {
                    if (shadows == null || shadows.length == 0)
                        return shadows;
                    int length = shadows.length;
            
            Severity: Minor
            Found in zk/src/main/java/org/zkoss/zk/ui/sys/ShadowElementsCtrl.java - About 1 hr to fix

              Method outZkTags has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              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);
              
              
              Severity: Minor
              Found in zk/src/main/java/org/zkoss/zk/ui/sys/HtmlPageRenders.java - About 1 hr to fix

                Method remove0 has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                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

                      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)
                  Severity: Minor
                  Found in zk/src/main/java/org/zkoss/zk/ui/http/DHtmlLayoutPortlet.java - About 1 hr to fix

                    Method recycleDesktop has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                    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;
                    
                    
                    Severity: Minor
                    Found in zk/src/main/java/org/zkoss/zk/ui/impl/UiEngineImpl.java - About 1 hr to fix

                      Method getVariableImpl has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                      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:
                      Severity: Minor
                      Found in zk/src/main/java/org/zkoss/zk/scripting/bsh/BSHInterpreter.java - About 1 hr to fix

                        Method coerceToUi has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                        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

                              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>();
                          
                          
                          Severity: Minor
                          Found in zkbind/src/main/java/org/zkoss/bind/impl/AnnotateBinderHelper.java - About 1 hr to fix

                            Method collectSaveFormBinding has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                            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();
                            Severity: Minor
                            Found in zkbind/src/main/java/org/zkoss/bind/impl/ValidationHelper.java - About 1 hr to fix

                              Method addPropertyInitBinding0 has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                              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);
                              Severity: Minor
                              Found in zkbind/src/main/java/org/zkoss/bind/impl/BinderImpl.java - About 1 hr to fix

                                Method load has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                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

                                      public void ungroup(boolean ascending) {
                                          final Comparator<?> cmpr = ascending ? _sortAsc : _sortDsc;
                                          if (cmpr != null) {
                                  
                                              final Grid grid = getGrid();
                                  Severity: Minor
                                  Found in zul/src/main/java/org/zkoss/zul/Column.java - About 1 hr to fix

                                    Method getVisibleItemsDFS has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                    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
                                    Severity: Minor
                                    Found in zul/src/main/java/org/zkoss/zul/Tree.java - About 1 hr to fix

                                      Method doSort has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          @SuppressWarnings("unchecked")
                                          /*package*/ boolean doSort(boolean ascending) {
                                              final Comparator cmpr = ascending ? _sortAsc : _sortDsc;
                                              if (cmpr == null)
                                                  return false;
                                      Severity: Minor
                                      Found in zul/src/main/java/org/zkoss/zul/Treecol.java - About 1 hr to fix

                                        Method addVisibleItemCount has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            /*package*/ void addVisibleItemCount(int count) {
                                                if (count != 0) {
                                                    _visibleItemCount += count;
                                                    final Grid grid = getGrid();
                                                    if (grid != null) {
                                        Severity: Minor
                                        Found in zul/src/main/java/org/zkoss/zul/Rows.java - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language