Showing 4,841 of 7,782 total issues

Method uploadErrorMessage has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static String uploadErrorMessage(Throwable ex) {
        log.error("Failed to upload", ex);
        if (ex instanceof FileUploadSizeException) {
            try {
                FileUploadSizeException fex = (FileUploadSizeException) ex;
Severity: Minor
Found in zk/src/main/java/org/zkoss/zk/au/http/AuMultipartUploader.java - About 1 hr to fix

    Method getFromScope has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            protected Object getFromScope(String name) {
                final BSHInterpreter ip = getInterpreter(_scope);
                final Scope curr = ip != null ? ip.getCurrent() : null;
                if (curr == null)
                    return getImplicit(name); //ignore scope
    Severity: Minor
    Found in zk/src/main/java/org/zkoss/zk/scripting/bsh/BSHInterpreter.java - About 1 hr to fix

      Method saveEqualBeans has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private void saveEqualBeans(ELContext elCtx, Object base, String prop, Object value) {
              final BindELContext ctx = (BindELContext) ((EvaluationContext) elCtx).getELContext();
      
              final BindContext bctx = (BindContext) ctx.getAttribute(BinderImpl.BINDCTX);
      
      
      Severity: Minor
      Found in zkbind/src/main/java/org/zkoss/bind/xel/zel/BindELResolver.java - About 1 hr to fix

        Method getFromScope has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                protected Object getFromScope(String name) {
                    final Scope curr = getCurrent();
                    if (curr == null) //no scope allowed
                        return getImplicit(name);
        
        
        Severity: Minor
        Found in zk/src/main/java/org/zkoss/zk/scripting/bsh/BSHInterpreter.java - About 1 hr to fix

          Method call has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public void call(Object base, Method method) {
                  Method originalMethod = ViewModelAnnotationResolvers.getOriginalMethod(base, method);
                  Class<?>[] paramTypes = originalMethod.getParameterTypes();
                  java.lang.annotation.Annotation[][] parmAnnos = originalMethod.getParameterAnnotations();
                  Object[] params = new Object[paramTypes.length];
          Severity: Minor
          Found in zkbind/src/main/java/org/zkoss/bind/impl/ParamCall.java - About 1 hr to fix

            Method coerceToUi has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                @SuppressWarnings("unchecked")
                public Object coerceToUi(Object val, C comp, BindContext ctx) {
            
                    final ListModel<?> model = getComponentModel(comp);
                    //ZK-762 selection of ListModelList is not correct if binding to selectedItem

              Method coerceToUi has 26 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  @SuppressWarnings("unchecked")
                  public Object coerceToUi(Object val, Component comp, BindContext ctx) {
                      Combobox cbx = (Combobox) comp;
                      final ListModel<?> model = cbx.getModel();
                      //ZK-762 selection of ListModelList is not correct if binding to selectedItem

                Method coerceToUi has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    @SuppressWarnings("unchecked")
                    public Object coerceToUi(Object val, Component comp, BindContext ctx) {
                        Listbox lbx = (Listbox) comp;
                        final ListModel<?> model = lbx.getModel();
                        //ZK-762 selection of ListModelList is not correct if binding to selectedItem

                  Method validateSaveFormBinding has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      private boolean validateSaveFormBinding(Component comp, SaveFormBinding binding, String command,
                              Map<String, Property[]> validates, boolean valid, Set<Property> notifys) {
                          //validate tracked savebinding
                          Set<SaveBinding> savebindings = ((BinderCtrl) binding.getBinder())
                                  .getFormAssociatedSaveBindings(binding.getComponent());
                  Severity: Minor
                  Found in zkbind/src/main/java/org/zkoss/bind/impl/ValidationHelper.java - About 1 hr to fix

                    Method onEvent has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            public void onEvent(Event event) throws Exception {
                                if (_modelInitListener != null) {
                                    Grid.this.removeEventListener("onInitModel", _modelInitListener);
                                    _modelInitListener = null;
                                }
                    Severity: Minor
                    Found in zul/src/main/java/org/zkoss/zul/Grid.java - About 1 hr to fix

                      Method renderProperties has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws java.io.IOException {
                              super.renderProperties(renderer);
                      
                              render(renderer, "oddRowSclass", _scOddRow);
                      
                      
                      Severity: Minor
                      Found in zul/src/main/java/org/zkoss/zul/Grid.java - About 1 hr to fix

                        Method getEqualBeans has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                public Set<Object> getEqualBeans(Object bean) {
                                    boolean doSync = false;
                                    EqualBeans equalBeans;
                                    if (bean instanceof Collection) {
                                        equalBeans = _identityMap.get(bean);
                        Severity: Minor
                        Found in zkbind/src/main/java/org/zkoss/bind/tracker/impl/TrackerImpl.java - About 1 hr to fix

                          Method beforeChildAdded has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public void beforeChildAdded(Component newChild, Component refChild) {
                                  if (newChild instanceof Caption) {
                                      if (_caption != null && _caption != newChild)
                                          throw new UiException("Only one caption is allowed: " + this);
                                  } else if (refChild instanceof Caption) {
                          Severity: Minor
                          Found in zul/src/main/java/org/zkoss/zul/Panel.java - About 1 hr to fix

                            Method service has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public void service(org.zkoss.zk.au.AuRequest request, boolean everError) {
                                    final String cmd = request.getCommand();
                                    if (cmd.equals(Events.ON_OPEN)) {
                                        OpenEvent evt = OpenEvent.getOpenEvent(request);
                                        _open = evt.isOpen();
                            Severity: Minor
                            Found in zul/src/main/java/org/zkoss/zul/Listgroup.java - About 1 hr to fix

                              Method selectTabDirectly has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  /* packge */void selectTabDirectly(Tab tab, boolean byClient) {
                                      if (tab == null)
                                          throw new IllegalArgumentException("null tab");
                                      if (tab.getTabbox() != this)
                                          throw new UiException("Not my child: " + tab);
                              Severity: Minor
                              Found in zul/src/main/java/org/zkoss/zul/Tabbox.java - About 1 hr to fix

                                Method setParent has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public void setParent(Component parent) {
                                        Radiogroup oldgp = null;
                                
                                        if (getParent() != null)
                                            oldgp = getRadiogroup();
                                Severity: Minor
                                Found in zul/src/main/java/org/zkoss/zul/Radio.java - About 1 hr to fix

                                  Method encodeURL has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          public String encodeURL(ServletRequest request, ServletResponse response, String uri)
                                                  throws ServletException, UnsupportedEncodingException {
                                              uri = Servlets.locate(_ctx, request, uri, getLocator()); //resolves "*"
                                              uri = (_encURLPrefix != null ? _mappingURI + _encURLPrefix : _mappingURI) + uri; //prefix with mapping
                                  
                                  

                                    Function remove has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        remove: function( owner, key ) {
                                            var i,
                                                cache = owner[ this.expando ];
                                    
                                            if ( cache === undefined ) {
                                    Severity: Minor
                                    Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

                                      Function cluster has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        function cluster(d, i) {
                                          var nodes = hierarchy.call(this, d, i),
                                              root = nodes[0],
                                              previousNode,
                                              x = 0,
                                      Severity: Minor
                                      Found in zktest/src/main/webapp/js/d3.layout.js - About 1 hr to fix

                                        Function toISOString has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function toISOString(keepOffset) {
                                                if (!this.isValid()) {
                                                    return null;
                                                }
                                                var utc = keepOffset !== true,
                                        Severity: Minor
                                        Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language