Showing 4,841 of 7,782 total issues

ELContext has 21 methods (exceeds 20 allowed). Consider refactoring.
Open

public abstract class ELContext {

    private Locale locale;

    private Map<Class<?>, Object> map;
Severity: Minor
Found in zel/src/main/java/org/zkoss/zel/ELContext.java - About 2 hrs to fix

    F86_ZK_3913VM has 21 methods (exceeds 20 allowed). Consider refactoring.
    Open

    public class F86_ZK_3913VM {
        private static final List<String> TYPES = Collections.unmodifiableList(Arrays.asList("CODE39", "CODE128", "CODE128A", "CODE128B",
                "CODE128C", "EAN13", "EAN8", "EAN5", "EAN2", "UPC", "ITF14", "ITF", "MSI", "MSI10", "MSI11", "MSI1010",
                "MSI1010", "MSI1110", "PHARMACODE", "CODABAR", "QR", "pdf417"));
        private String _value = "1234";
    Severity: Minor
    Found in zktest/src/main/java/org/zkoss/zktest/test2/F86_ZK_3913VM.java - About 2 hrs to fix

      ClientInfoEvent has 21 methods (exceeds 20 allowed). Consider refactoring.
      Open

      public class ClientInfoEvent extends Event {
          private final int _scrnwd, _scrnhgh, _colorDepth;
          private final int _dtwd, _dthgh, _dtx, _dty;
          private final double _dpr;
          private final String _orient, _media;
      Severity: Minor
      Found in zk/src/main/java/org/zkoss/zk/ui/event/ClientInfoEvent.java - About 2 hrs to fix

        TrackerNodeImpl has 21 methods (exceeds 20 allowed). Consider refactoring.
        Open

        public class TrackerNodeImpl implements TrackerNode, Serializable {
            private static final long serialVersionUID = 1463169907348730644L;
            private final Object _script; //script of this node (e.g. firstname or ['firstname'])
            private final Map<Object, TrackerNode> _dependents; //kid script -> kid TrackerNode
            private final Map<Object, TrackerNode> _brackets; //property -> bracket script
        Severity: Minor
        Found in zkbind/src/main/java/org/zkoss/bind/tracker/impl/TrackerNodeImpl.java - About 2 hrs to fix

          Paging has 21 methods (exceeds 20 allowed). Consider refactoring.
          Open

          public class Paging extends XulElement implements Paginal {
              /** # of items per page. */
              private int _pgsz = 20;
              /** total # of items. */
              private int _ttsz = 0;
          Severity: Minor
          Found in zul/src/main/java/org/zkoss/zul/Paging.java - About 2 hrs to fix

            Groupbox has 21 methods (exceeds 20 allowed). Consider refactoring.
            Open

            public class Groupbox extends XulElement {
                private transient Caption _caption;
                /** The style used for the content block. */
                private String _cntStyle;
                /** The style class used for the content block. */
            Severity: Minor
            Found in zul/src/main/java/org/zkoss/zul/Groupbox.java - About 2 hrs to fix

              PortletHttpSession has 21 methods (exceeds 20 allowed). Consider refactoring.
              Open

              public class PortletHttpSession implements HttpSession {
                  private final PortletSession _sess;
              
                  public static HttpSession getInstance(PortletSession sess) {
                      if (sess instanceof HttpSession)
              Severity: Minor
              Found in zweb/src/main/java/org/zkoss/web/portlet/PortletHttpSession.java - About 2 hrs to fix

                Method getMethod0 has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    private static Method getMethod0(Class<?> clazz, String methodName, Class<?>[] paramTypes, Object[] params) {
                        Method matchingMethod = null;
                        if (paramTypes != null) {
                            try {
                                matchingMethod = Util.getMethod(clazz, clazz.getMethod(methodName, paramTypes));
                Severity: Major
                Found in zel/src/main/java/org/zkoss/zel/BeanELResolver.java - About 2 hrs to fix

                  Method invoke has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public Object invoke(ELContext context, Object base, Object method,
                              Class<?>[] paramTypes, Object[] params) {
                  
                          if (context == null) {
                              throw new NullPointerException();
                  Severity: Major
                  Found in zel/src/main/java/org/zkoss/zel/StaticFieldELResolver.java - About 2 hrs to fix

                    Method fillShadowHost has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        private JSONObject fillShadowHost(Component host) {
                            JSONObject rootData = fillComponentOnly(host);
                            JSONArray childrenArray = new JSONArray();
                            rootData.put("children", childrenArray);
                            List<AbstractComponent> children = host.getChildren();

                      Method mergeSubTree has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          protected void mergeSubTree() {
                              List<HtmlShadowElement> children = getChildren();
                              if (children == null || children.isEmpty())
                                  return; // nothing to do.
                              if (_parent != null) {
                      Severity: Major
                      Found in zk/src/main/java/org/zkoss/zk/ui/HtmlShadowElement.java - About 2 hrs to fix

                        Method onEvent0 has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                private void onEvent0(Event event) throws Exception {
                                    //command need to be confirmed shall be execute first!
                                    //must sort the command sequence?
                        
                                    //BUG 619, event may come from children of some component,
                        Severity: Major
                        Found in zkbind/src/main/java/org/zkoss/bind/impl/BinderImpl.java - About 2 hrs to fix

                          Function init has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              init = jQuery.fn.init = function( selector, context, root ) {
                                  var match, elem;
                          
                                  // HANDLE: $(""), $(null), $(undefined), $(false)
                                  if ( !selector ) {
                          Severity: Major
                          Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 2 hrs to fix

                            Function layoutregion$mold$ has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function layoutregion$mold$(out) {
                                var uuid = this.uuid,
                                    pos = this.getPosition(),
                                    BL = zul.layout.Borderlayout,
                                    noCenter = pos != BL.CENTER,
                            Severity: Major
                            Found in zul/src/main/resources/web/js/zul/layout/mold/layoutregion.js - About 2 hrs to fix

                              Method parseMethod has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public static final MethodInfo parseMethod(String signature) 
                                  throws IllegalSyntaxException {
                                      int len = signature.length();
                                      int j = Strings.skipWhitespaces(signature, 0);
                                      int k = Strings.anyOf(signature, "( \t\n\r", j);
                              Severity: Major
                              Found in zcommon/src/main/java/org/zkoss/lang/Classes.java - About 2 hrs to fix

                                Method lookup has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public static Template lookup(Component comp, Component base, String name, Component compBase,
                                            boolean excludeBase) {
                                        if (comp == null)
                                            return null;
                                        Template template = (excludeBase && comp == base) ? null : comp.getTemplate(name);
                                Severity: Major
                                Found in zk/src/main/java/org/zkoss/zk/ui/Templates.java - About 2 hrs to fix

                                  Method getImplicit has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public static Object getImplicit(Page page, Component comp, String name) {
                                          if (comp != null && page == null)
                                              page = getCurrentPage(comp);
                                  
                                          if ("log".equals(name))
                                  Severity: Major
                                  Found in zk/src/main/java/org/zkoss/zk/ui/Components.java - About 2 hrs to fix

                                    Method afterHostChildAdded has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public void afterHostChildAdded(Component child, int indexOfChild) {
                                            if (log.isDebugEnabled()) {
                                                log.debug("afterHostChildAdded {}, in this shadow {}", child,
                                                        ShadowElementsCtrl.getCurrentInfo());
                                            }
                                    Severity: Major
                                    Found in zk/src/main/java/org/zkoss/zk/ui/HtmlShadowElement.java - About 2 hrs to fix

                                      Method insertBefore has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public boolean insertBefore(Component newChild, Component refChild) {
                                              if ((newChild instanceof Macro) && ((Macro) newChild).isInline())
                                                  return ((Macro) newChild).setInlineParent(this, refChild);
                                      
                                              checkParentChild(this, newChild); ///create _chdinf
                                      Severity: Major
                                      Found in zk/src/main/java/org/zkoss/zk/ui/AbstractComponent.java - About 2 hrs to fix

                                        Method renderProperties has 53 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, "name", _name);
                                                if (_rows > 0)
                                        Severity: Major
                                        Found in zul/src/main/java/org/zkoss/zul/Tree.java - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language