Showing 4,841 of 7,782 total issues

Method myGetAcsObj has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static final AccessibleObject
    myGetAcsObj(Class<?> cls, String name, Class<?>[] argTypes, int flags)
    throws NoSuchMethodException {
        //try public set/get
        final String decoratedName =
Severity: Minor
Found in zcommon/src/main/java/org/zkoss/lang/Classes.java - About 2 hrs to fix

    Method loadDati has 50 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public BugOasiTreeNode<BugFormModel> loadDati(
                BugOasiTreeNode<BugFormModel> parent)
        {
            BugFormModel row=null;
            /* --------------------------------------- */
    Severity: Minor
    Found in zktest/src/main/java/org/zkoss/zktest/test2/B100_ZK_5535/Bug.java - About 2 hrs to fix

      Method loadProperites has 50 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private void loadProperites(ServletContext context) {
              try {
                  BufferedReader bufReader = new BufferedReader(
                          new InputStreamReader(context.getResourceAsStream(PATH + CONFIG)));
                  String prop = null;
      Severity: Minor
      Found in zksandbox/src/main/java/org/zkoss/zksandbox/DemoWebAppInit.java - About 2 hrs to fix

        Method doSuspend0 has 50 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private void doSuspend0(Object mutex) throws InterruptedException {
                //        if (log.finerable()) log.finer("Suspend event processing; "+_proc);
                if (mutex == null)
                    throw new IllegalArgumentException("null mutex");
                if (isIdle())
        Severity: Minor
        Found in zk/src/main/java/org/zkoss/zk/ui/impl/EventProcessingThreadImpl.java - About 2 hrs to fix

          Method initViewModel has 50 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              private Object initViewModel(BindEvaluatorX evalx, Component comp) {
                  final ComponentCtrl compCtrl = (ComponentCtrl) comp;
                  final Annotation idanno = compCtrl.getAnnotation(VIEW_MODEL_ATTR, ID_ANNO);
                  final Annotation initanno = compCtrl.getAnnotation(VIEW_MODEL_ATTR, INIT_ANNO);
                  String vmname = null;
          Severity: Minor
          Found in zkbind/src/main/java/org/zkoss/bind/BindComposer.java - About 2 hrs to fix

            Method getValue has 50 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public Object getValue(ELContext ctx, Object base, Object property) throws PropertyNotFoundException, ELException {
                    Object value = null;
                    if (base == null) {
                        if (_pathResolver == null) {
                            _pathResolver = new PathELResolver(); // init
            Severity: Minor
            Found in zkbind/src/main/java/org/zkoss/bind/xel/zel/BindELResolver.java - About 2 hrs to fix

              Consider simplifying this complex logical expression.
              Open

                                      if (ZKBIND1_ANNO.equals(nm) || ZKBIND2_ANNO.equals(nm) || BIND_ANNO.equals(nm)
                                              || LOAD_ANNO.equals(nm) || SAVE_ANNO.equals(nm) || VALIDATOR_ANNO.equals(nm)
                                              || REFERENCE_ANNO.equals(nm) || CONVERTER_ANNO.equals(nm) || TEMPLATE_ANNO.equals(nm)
                                              || INIT_ANNO.equals(nm)) {
                                          continue;

                Method render has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public String render(final Component owner, final Object data, final int index) throws Exception {
                        final int size = ((Selectbox) owner).getModel().getSize();
                        final Template tm = resolveTemplate(owner, owner, data, index, size, "model");
                        if (tm == null) {
                            return Objects.toString(data);
                Severity: Minor
                Found in zkbind/src/main/java/org/zkoss/bind/impl/BindSelectboxRenderer.java - About 2 hrs to fix

                  Consider simplifying this complex logical expression.
                  Open

                              if (cc == '/' || cc == '\\' || cc == '.' || cc == ':' || cc == '?' || cc == '&' || cc == '=' || cc == '%' || cc == '#' || cc == ' ')
                                  return false;
                  Severity: Critical
                  Found in zul/src/main/java/org/zkoss/zul/theme/CookieThemeResolver.java - About 2 hrs to fix

                    Method renderProperties has 50 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);
                    
                            setChildPage(null);
                            render(renderer, "comment", _comment);
                    Severity: Minor
                    Found in zul/src/main/java/org/zkoss/zul/Include.java - About 2 hrs to fix

                      Consider simplifying this complex logical expression.
                      Open

                                  if (!ignore)
                                      ignore = (cc < '0' || cc > '9') && cc != DECIMAL && cc != MINUS && cc != '+'
                                              && (Character.isWhitespace(cc) || cc == GROUPING || cc == ')'
                                                      || (fmt != null && fmt.indexOf(cc) >= 0));
                      Severity: Critical
                      Found in zul/src/main/java/org/zkoss/zul/impl/NumberInputElement.java - About 2 hrs to fix

                        Function pie has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        d3.layout.pie = function() {
                          var value = Number,
                              sort = null,
                              startAngle = 0,
                              endAngle = 2 * Math.PI;
                        Severity: Minor
                        Found in zktest/src/main/webapp/js/d3.layout.js - About 2 hrs to fix

                          Function format has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          d3.format = function(specifier) {
                            var match = d3_format_re.exec(specifier),
                                fill = match[1] || " ",
                                sign = match[3] || "",
                                zfill = match[5],
                          Severity: Minor
                          Found in zktest/src/main/webapp/js/d3.js - About 2 hrs to fix

                            Consider simplifying this complex logical expression.
                            Open

                                            if ( ( mappedTypes || origType === handleObj.origType ) &&
                                                ( !handler || handler.guid === handleObj.guid ) &&
                                                ( !tmp || tmp.test( handleObj.namespace ) ) &&
                                                ( !selector || selector === handleObj.selector ||
                                                    selector === "**" && handleObj.selector ) ) {
                            Severity: Critical
                            Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 2 hrs to fix

                              Consider simplifying this complex logical expression.
                              Open

                                          if (!ignore)
                                              ignore = (cc < '0' || cc > '9')
                                              && cc != zkDecimal && cc != zkMinus && cc != '+'
                                              && (zUtl.isChar(cc, {whitespace: 1}) || cc == zkGrouping
                                                  || cc == ')' || (fmt && fmt.indexOf(cc) >= 0));
                              Severity: Critical
                              Found in zk/src/main/resources/web/js/zk/fmt/numfmt.ts - About 2 hrs to fix

                                Function _draw has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    _draw(point: zk.Offset, evt?: zk.Event): void {
                                        var node = this.node!,
                                            $node = zk(node),
                                            pos = $node.cmOffset(),
                                            opts = this.opts;
                                Severity: Minor
                                Found in zk/src/main/resources/web/js/zk/drag.ts - About 2 hrs to fix

                                  Method toJSONString has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public static String toJSONString(Object value){
                                          if(value == null)
                                              return "null";
                                          
                                          if(value instanceof String)
                                  Severity: Minor
                                  Found in zcommon/src/main/java/org/zkoss/json/JSONValue.java - About 1 hr to fix

                                    Method And has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      final public void And() throws ParseException {
                                        Equality();
                                        label_8:
                                        while (true) {
                                          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
                                    Severity: Minor
                                    Found in zel/src/main/java/org/zkoss/zel/impl/parser/ELParser.java - About 1 hr to fix

                                      Method Or has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        final public void Or() throws ParseException {
                                          And();
                                          label_7:
                                          while (true) {
                                            switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
                                      Severity: Minor
                                      Found in zel/src/main/java/org/zkoss/zel/impl/parser/ELParser.java - About 1 hr to fix

                                        Method parseConfigXml has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public void parseConfigXml(Configuration config) {
                                                boolean syscfgLoaded;
                                                boolean syscfgLoadedConfig;
                                                synchronized (ConfigParser.class) {
                                                    syscfgLoaded = _syscfgLoaded;
                                        Severity: Minor
                                        Found in zk/src/main/java/org/zkoss/zk/ui/sys/ConfigParser.java - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language