Showing 4,841 of 7,782 total issues

Method addEscapes has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  protected static final String addEscapes(String str) {
    StringBuffer retval = new StringBuffer();
    char ch;
    for (int i = 0; i < str.length(); i++) {
      switch (str.charAt(i))
Severity: Minor
Found in zel/src/main/java/org/zkoss/zel/impl/parser/TokenMgrError.java - About 1 hr to fix

    Method add_escapes has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      static String add_escapes(String str) {
          StringBuffer retval = new StringBuffer();
          char ch;
          for (int i = 0; i < str.length(); i++) {
            switch (str.charAt(i))
    Severity: Minor
    Found in zel/src/main/java/org/zkoss/zel/impl/parser/ParseException.java - About 1 hr to fix

      Method getStyleSheets has 42 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public static final List<StyleSheet> getStyleSheets(Execution exec, WebApp wapp, String deviceType) {
              if (wapp == null)
                  wapp = exec.getDesktop().getWebApp();
              if (deviceType == null)
                  deviceType = exec.getDesktop().getDeviceType();
      Severity: Minor
      Found in zk/src/main/java/org/zkoss/zk/ui/sys/HtmlPageRenders.java - About 1 hr to fix

        Method getVisibleChildren has 42 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public static Collection<Component> getVisibleChildren(Component comp) {
                final Collection<Component> children = comp.getChildren();
                return new AbstractCollection<Component>() {
                    public int size() {
                        int size = 0;
        Severity: Minor
        Found in zk/src/main/java/org/zkoss/zk/ui/Components.java - About 1 hr to fix

          Method replaceWith has 42 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              private final void replaceWith(AbstractComponent comp, boolean bFellow, boolean bListener, boolean bChildren) {
                  if (this == comp || comp._parent != null || comp._next != null || comp._prev != null || comp._chdinf != null
                          || comp._page != null)
                      throw new IllegalStateException();
          
          
          Severity: Minor
          Found in zk/src/main/java/org/zkoss/zk/ui/AbstractComponent.java - About 1 hr to fix

            Method redraw has 42 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public void redraw(Writer out) throws IOException {
                    String ctl;
                    final Execution exec = getExecution();
                    final boolean au = exec.isAsyncUpdate(null);
                    if (!au && !exec.isIncluded()
            Severity: Minor
            Found in zk/src/main/java/org/zkoss/zk/ui/impl/PageImpl.java - About 1 hr to fix

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

                  public void service(AuRequest request, boolean everError) {
                      if (_ausvcs != null) {
                          //Note: removeListener might be called when invoking svc.service()
                          for (Iterator<AuService> it = new LinkedList<AuService>(_ausvcs).iterator(); it.hasNext();)
                              if (it.next().service(request, everError))
              Severity: Minor
              Found in zk/src/main/java/org/zkoss/zk/ui/impl/DesktopImpl.java - About 1 hr to fix

                Method activate has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public boolean activate(long timeout) throws InterruptedException, DesktopUnavailableException {
                        final Thread curr = Thread.currentThread();
                        if (_active != null && _active.thread.equals(curr)) { //re-activate
                            ++_active.nActive;
                            return true;
                Severity: Minor
                Found in zk/src/main/java/org/zkoss/zk/ui/impl/PollingServerPush.java - About 1 hr to fix

                  Method processPropertyPromptBindings has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      private void processPropertyPromptBindings(Component comp, String propName, Annotation ann,
                              ExpressionAnnoInfo converterInfo, ExpressionAnnoInfo validatorInfo) {
                          String expr = null;
                          Map<String, String[]> args = null;
                          for (final Iterator<Entry<String, String[]>> it = ann.getAttributes().entrySet().iterator(); it.hasNext();) {
                  Severity: Minor
                  Found in zkbind/src/main/java/org/zkoss/bind/impl/AnnotateBinderHelper.java - About 1 hr to fix

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

                            /*package*/ @SuppressWarnings("unchecked")
                            void render(Row row, int index) throws Throwable {
                                if (row.isLoaded())
                                    return; //nothing to do
                    
                    
                    Severity: Minor
                    Found in zul/src/main/java/org/zkoss/zul/Grid.java - About 1 hr to fix

                      Method setSort has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public void setSort(String type) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
                              if (type == null)
                                  return;
                              if (type.startsWith("client")) {
                                  setSortAscending(type);
                      Severity: Minor
                      Found in zul/src/main/java/org/zkoss/zul/Column.java - About 1 hr to fix

                        Method renderChangedItem has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                @SuppressWarnings("unchecked")
                                private void renderChangedItem(Treeitem item, Object node, int index) throws Throwable {
                                    if (!_rendered && (_renderer instanceof RendererCtrl)) {
                                        ((RendererCtrl) _renderer).doTry();
                                        _ctrled = true;
                        Severity: Minor
                        Found in zul/src/main/java/org/zkoss/zul/Tree.java - About 1 hr to fix

                          Method doInitRenderer has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              @SuppressWarnings("rawtypes")
                              private void doInitRenderer() {
                                  if (getPage() == null)
                                      return;
                                  // sync the multiple status from model
                          Severity: Minor
                          Found in zul/src/main/java/org/zkoss/zul/Listbox.java - About 1 hr to fix

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

                                public void render(ActionContext ac, boolean nested) throws DspException, IOException {
                                    if (!isEffective())
                                        return;
                                    if (nested)
                                        throw new DspException(MWeb.DSP_NESTED_ACTION_NOT_ALLOWED,
                            Severity: Minor
                            Found in zweb/src/main/java/org/zkoss/web/servlet/dsp/action/Out.java - About 1 hr to fix

                              Method renderWith has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  private void renderWith(ActionContext ac, Status st, String txt) throws DspException, IOException {
                                      final StringBuffer sb = new StringBuffer();
                                      int idx = 0;
                                      final StringWriter out = getFragmentOut(ac, _trim);
                                      for (int j = _beg, len = txt.length(); j < len && j <= _end; ++j) {
                              Severity: Minor
                              Found in zweb/src/main/java/org/zkoss/web/servlet/dsp/action/ForEach.java - About 1 hr to fix

                                Function d3_rgb_parse has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function d3_rgb_parse(format, rgb, hsl) {
                                  var r = 0, // red channel; int in [0, 255]
                                      g = 0, // green channel; int in [0, 255]
                                      b = 0, // blue channel; int in [0, 255]
                                      m1, // CSS color specification match
                                Severity: Minor
                                Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

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

                                  d3.layout.cluster = function() {
                                    var hierarchy = d3.layout.hierarchy().sort(null).value(null),
                                        separation = d3_layout_treeSeparation,
                                        size = [1, 1]; // width, height
                                  
                                  
                                  Severity: Minor
                                  Found in zktest/src/main/webapp/js/d3.layout.js - About 1 hr to fix

                                    Function handleStrictParse has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function handleStrictParse(monthName, format, strict) {
                                            var i,
                                                ii,
                                                mom,
                                                llc = monthName.toLocaleLowerCase();
                                    Severity: Minor
                                    Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 1 hr to fix

                                      Function localeMonthsParse has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function localeMonthsParse(monthName, format, strict) {
                                              var i, mom, regex;
                                      
                                              if (this._monthsParseExact) {
                                                  return handleStrictParse.call(this, monthName, format, strict);
                                      Severity: Minor
                                      Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 1 hr to fix

                                        Function ajaxSendNow has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function ajaxSendNow(reqInf: AuRequestInfo): void {
                                            var fetchOpts: RequestInit = {
                                                credentials: 'same-origin',
                                                method: 'POST',
                                                headers: reqInf.content instanceof FormData ? { 'ZK-SID': '' + reqInf.sid } : { 'Content-Type': zAu.ajaxSettings.contentType, 'ZK-SID': '' + reqInf.sid },
                                        Severity: Minor
                                        Found in zk/src/main/resources/web/js/zk/au.ts - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language