Showing 4,841 of 7,782 total issues

B65_ZK_1840_ViewModel has 27 methods (exceeds 20 allowed). Consider refactoring.
Open

public class B65_ZK_1840_ViewModel {
    private String sequenceStatus;
    private String backgroundStatus;
    private String manualStatus;
    

    F90_ZK_4375Composer has 27 methods (exceeds 20 allowed). Consider refactoring.
    Open

    public class F90_ZK_4375Composer extends SelectorComposer {
        @Wire
        private Stepbar stepbar;
        @Wire
        private Label answer;
    Severity: Minor
    Found in zktest/src/main/java/org/zkoss/zktest/test2/F90_ZK_4375Composer.java - About 3 hrs to fix

      Selectors has 27 methods (exceeds 20 allowed). Consider refactoring.
      Open

      public class Selectors {
      
          /**
           * Returns an Iterable that iterates through all Components matched by the
           * selector. 
      Severity: Minor
      Found in zk/src/main/java/org/zkoss/zk/ui/select/Selectors.java - About 3 hrs to fix

        DefinitionLoaders has 27 methods (exceeds 20 allowed). Consider refactoring.
        Open

        public class DefinitionLoaders {
            private static final Logger log = LoggerFactory.getLogger(DefinitionLoaders.class);
        
            /** List<Object[Locator, URL]> */
            private static List<Object[]> _addons;
        Severity: Minor
        Found in zk/src/main/java/org/zkoss/zk/ui/metainfo/DefinitionLoaders.java - About 3 hrs to fix

          DHtmlUpdateServlet has 27 methods (exceeds 20 allowed). Consider refactoring.
          Open

          public class DHtmlUpdateServlet extends HttpServlet {
              private static final Logger log = LoggerFactory.getLogger(DHtmlUpdateServlet.class);
              private static final String ATTR_UPDATE_SERVLET = "org.zkoss.zk.au.http.updateServlet";
              private static final String ATTR_AU_PROCESSORS = "org.zkoss.zk.au.http.auProcessors";
          
          
          Severity: Minor
          Found in zk/src/main/java/org/zkoss/zk/au/http/DHtmlUpdateServlet.java - About 3 hrs to fix

            BindComposer has 27 methods (exceeds 20 allowed). Consider refactoring.
            Open

            @SuppressWarnings("rawtypes")
            public class BindComposer<T extends Component>
                    implements Composer<T>, ComposerExt<T>, Serializable, AuService, ComponentActivationListener {
            
                private static final long serialVersionUID = 1463169907348730644L;
            Severity: Minor
            Found in zkbind/src/main/java/org/zkoss/bind/BindComposer.java - About 3 hrs to fix

              MapProxy has 27 methods (exceeds 20 allowed). Consider refactoring.
              Open

              public class MapProxy<K, V> implements Map<K, V>, Proxy, FormProxyObject, Serializable {
                  private static final Logger log = LoggerFactory.getLogger(MapProxy.class);
                  private Map<K, V> _cache;
                  private boolean _dirty;
                  private Map<K, V> _origin;
              Severity: Minor
              Found in zkbind/src/main/java/org/zkoss/bind/proxy/MapProxy.java - About 3 hrs to fix

                AnnotateBinderHelper has 27 methods (exceeds 20 allowed). Consider refactoring.
                Open

                public class AnnotateBinderHelper {
                    private final Binder _binder;
                
                    public static final String INIT_ANNO = "init";
                    public static final String BIND_ANNO = "bind";
                Severity: Minor
                Found in zkbind/src/main/java/org/zkoss/bind/impl/AnnotateBinderHelper.java - About 3 hrs to fix

                  PropertyBindingHandler has 27 methods (exceeds 20 allowed). Consider refactoring.
                  Open

                  /*package*/ class PropertyBindingHandler extends AbstractBindingHandler {
                      private static final long serialVersionUID = 1L;
                  
                      private static final Logger _log = LoggerFactory.getLogger(PropertyBindingHandler.class);
                  
                  
                  Severity: Minor
                  Found in zkbind/src/main/java/org/zkoss/bind/impl/PropertyBindingHandler.java - About 3 hrs to fix

                    ForEach has 27 methods (exceeds 20 allowed). Consider refactoring.
                    Open

                    public class ForEach extends AbstractAction {
                        private String _var, _varStatus;
                        private Object _items;
                        private int _beg = 0, _end = Integer.MAX_VALUE;
                        private boolean _trim;
                    Severity: Minor
                    Found in zweb/src/main/java/org/zkoss/web/servlet/dsp/action/ForEach.java - About 3 hrs to fix

                      `` has 27 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      Object.assign(jq, {
                          nodeName(el?: Element, ...tags: string[]): boolean {
                              var tag = el && el.nodeName ? el.nodeName.toLowerCase() : '',
                                  j = arguments.length;
                              if (j <= 1)
                      Severity: Minor
                      Found in zk/src/main/resources/web/js/zk/dom.ts - About 3 hrs to fix

                        zUtl has 27 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                            export class zUtl { //static methods
                                //Character
                                /**
                                 * @returns whether the character is according to its opts.
                                 * @param cc - the character
                        Severity: Minor
                        Found in zk/src/main/resources/web/js/zk/utl.ts - About 3 hrs to fix

                          Method indexOf has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public static final int indexOf(Object o, Object element) {
                                  if (o instanceof String) {
                                      return element instanceof String ?
                                          ((String)o).indexOf((String)element): -1;
                                  } else if (o instanceof Collection) {
                          Severity: Major
                          Found in zcommon/src/main/java/org/zkoss/xel/fn/CommonFns.java - About 3 hrs to fix

                            Method addPropertyLoadBindings0 has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                private void addPropertyLoadBindings0(Component comp, String attr, String loadExpr, String[] beforeCmds,
                                        String[] afterCmds, Map<String, Object> bindingArgs, String converterExpr,
                                        Map<String, Object> converterArgs) {
                                    final boolean prompt = isPrompt(beforeCmds, afterCmds);
                                    final BindingExecutionInfoCollector collector = getBindingExecutionInfoCollector();
                            Severity: Major
                            Found in zkbind/src/main/java/org/zkoss/bind/impl/BinderImpl.java - About 3 hrs to fix

                              Method onTreeDataChange has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  private void onTreeDataChange(TreeDataEvent event) {
                                      final int type = event.getType();
                                      final int[] path = event.getPath();
                                      final Component target = path != null ? getChildByPath(path) : null;
                                      switch (type) {
                              Severity: Major
                              Found in zul/src/main/java/org/zkoss/zul/Tree.java - About 3 hrs to fix

                                Function handler has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function handler( event ) {
                                        var orgEvent   = event || window.event,
                                            args       = slice.call( arguments, 1 ),
                                            delta      = 0,
                                            deltaX     = 0,
                                Severity: Major
                                Found in zk/src/main/resources/web/js/zk/ext/jquery.mousewheel.js - About 3 hrs to fix

                                  Method parseClientConfig has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      private static void parseClientConfig(Configuration config, Element conf) {
                                          Integer v = parseInteger(conf, "processing-prompt-delay", POSITIVE_ONLY);
                                          if (v != null)
                                              config.setProcessingPromptDelay(v.intValue());
                                  
                                  
                                  Severity: Major
                                  Found in zk/src/main/java/org/zkoss/zk/ui/sys/ConfigParser.java - About 3 hrs to fix

                                    Method entrySet has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public Set<Map.Entry<K, V>> entrySet() {
                                            if (this.entrySet == null) {
                                                this.entrySet = new AbstractSet<Map.Entry<K, V>>() {
                                                    public Iterator<Map.Entry<K, V>> iterator() {
                                                        return createHashIterator(ENTRIES);
                                    Severity: Major
                                    Found in zkbind/src/main/java/org/zkoss/bind/impl/WeakIdentityMap.java - About 3 hrs to fix

                                      Method setModel has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public void setModel(ListModel<?> model) {
                                              //ZK-3514: speed up
                                              if (_model != null && _model != model) {
                                                  int threshold = Utils.getIntAttribute(this, "org.zkoss.zul.invalidateThreshold", 10, true);
                                                  int diff = Math.abs((model != null ? model.getSize() : 0) - _model.getSize());
                                      Severity: Major
                                      Found in zul/src/main/java/org/zkoss/zul/Grid.java - About 3 hrs to fix

                                        Method browserInfo has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            private static void browserInfo(Map<String, Object> zk, String ua) {
                                                if (ua != null) {
                                                    // ZK-1822: In locale Turkish, it can prevent 'I'.toLowerCase becomes 'i' without dot.
                                                    ua = ua.toLowerCase(Locale.ENGLISH);
                                                    if (_clientId != null) {
                                        Severity: Major
                                        Found in zweb/src/main/java/org/zkoss/web/servlet/Servlets.java - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language