Showing 4,841 of 7,782 total issues

Method execNonComponent has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static final void execNonComponent(CreateInfo ci, Component comp, Object meta) {
        final Page page = ci.page;
        if (meta instanceof AttributesInfo) {
            final AttributesInfo attrs = (AttributesInfo) meta;
            if (comp != null)
Severity: Minor
Found in zk/src/main/java/org/zkoss/zk/ui/impl/UiEngineImpl.java - About 1 hr to fix

    Method create has 38 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            public Component[] create(Component parent, Component insertBefore, VariableResolver resolver,
                    Composer composer) {
                final Execution exec = Executions.getCurrent();
                final ExecutionCtrl execCtrl = (ExecutionCtrl) exec;
                final Component[] cs;
    Severity: Minor
    Found in zk/src/main/java/org/zkoss/zk/ui/impl/UiEngineImpl.java - About 1 hr to fix

      Method doBeforeComposeChildren has 38 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public void doBeforeComposeChildren(final Component comp) throws Exception {
              //ZK-3831
              if (comp.getPage() == null) {
                  final Map<?, ?> currentArg = Executions.getCurrent().getArg();
                  ((ComponentCtrl) comp).addCallback(ComponentCtrl.AFTER_PAGE_ATTACHED, new Callback() {
      Severity: Minor
      Found in zkbind/src/main/java/org/zkoss/bind/BindComposer.java - About 1 hr to fix

        Method getValidator has 38 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public Validator getValidator(String name) {
                checkInit();
                Validator validator = null;
                if (_hasGetValidatorMethod) {
                    Object vm = getViewModel();
        Severity: Minor
        Found in zkbind/src/main/java/org/zkoss/bind/impl/BinderImpl.java - About 1 hr to fix

          Method addFormAssociatedSaveBinding has 38 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public void addFormAssociatedSaveBinding(Component associatedComp, String formId, SaveBinding saveBinding,
                      String fieldName) {
                  checkInit();
                  //find the form component by form id and a associated/nested component
                  Component formComp = lookupAssociatedFormComponent(formId, associatedComp);
          Severity: Minor
          Found in zkbind/src/main/java/org/zkoss/bind/impl/BinderImpl.java - About 1 hr to fix

            Method initRendererIfAny has 38 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                private void initRendererIfAny(Component comp, String attr) {
                    final Object installed = comp.getAttribute(BinderCtrl.RENDERER_INSTALLED);
                    if (installed != null) { //renderer was set already init
                        return;
                    }
            Severity: Minor
            Found in zkbind/src/main/java/org/zkoss/bind/impl/BinderImpl.java - About 1 hr to fix

              Method getConverter has 38 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public Converter getConverter(String name) {
                      checkInit();
                      Converter converter = null;
                      if (_hasGetConverterMethod) {
                          Object vm = getViewModel();
              Severity: Minor
              Found in zkbind/src/main/java/org/zkoss/bind/impl/BinderImpl.java - About 1 hr to fix

                Method getLoadBindingsPerProperty has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    private void getLoadBindingsPerProperty(Collection<TrackerNode> nodes, String prop,
                            LinkedHashSet<LoadBinding> bindings, LinkedHashSet<Object> kidbases, Set<TrackerNode> visited) {
                        if (".".equals(prop)) { //all base object
                            for (TrackerNode node : nodes) {
                                getLoadBindings0(node, bindings, kidbases, visited);
                Severity: Minor
                Found in zkbind/src/main/java/org/zkoss/bind/tracker/impl/TrackerImpl.java - About 1 hr to fix

                  Method show has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public static Button show(String message, String title, Button[] buttons, String[] btnLabels, String icon,
                              Button focus, EventListener<ClickEvent> listener, Map<String, String> params) {
                          final Map<String, Object> arg = new HashMap<String, Object>();
                          final Desktop desktop = Executions.getCurrent().getDesktop();
                          arg.put("message", message);
                  Severity: Minor
                  Found in zul/src/main/java/org/zkoss/zul/Messagebox.java - About 1 hr to fix

                    Method getAvailableAtClient has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        protected Set<? extends Component> getAvailableAtClient(int offset, int limit, boolean itemOnly) {
                            final Set<Component> avail = new LinkedHashSet<Component>(32);
                            if (!itemOnly) {
                                avail.addAll(_listbox.getHeads());
                                final Listfoot listfoot = _listbox.getListfoot();
                    Severity: Minor
                    Found in zul/src/main/java/org/zkoss/zul/impl/ListboxDataLoader.java - About 1 hr to fix

                      Method include has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public void include(RenderRequest request, RenderResponse response) throws PortletException, java.io.IOException {
                              try {
                                  // B60-ZK-1337: issues with RenderHttpServletRequest/RenderHttpServletResponse Wrapper
                                  //   will cause ServletException: Original SevletRequest or wrapped original ServletRequest
                                  //       not passed to RequestDispatcher in violation of SRV.8.2 and SRV.14.2.5.1

                        Method getBrowser has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            private static Browser getBrowser() {
                                Double number = Servlets.getBrowser(ServletFns.getCurrentRequest(), "ff");
                                if (number != null && number >= 3.6)
                                    return Browser.Firefox;
                                number = Servlets.getBrowser(ServletFns.getCurrentRequest(), "ie");
                        Severity: Minor
                        Found in zweb/src/main/java/org/zkoss/web/fn/ThemeFns.java - About 1 hr to fix

                          Function d3_selection_classed has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function d3_selection_classed(name, value) {
                            var re = new RegExp("(^|\\s+)" + d3.requote(name) + "(\\s+|$)", "g");
                          
                            // If no value is specified, return the first value.
                            if (arguments.length < 2) {
                          Severity: Minor
                          Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

                            Function d3_svg_lineHermite has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function d3_svg_lineHermite(points, tangents) {
                              if (tangents.length < 1
                                  || (points.length != tangents.length
                                  && points.length != tangents.length + 2)) {
                                return d3_svg_lineLinear(points);
                            Severity: Minor
                            Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

                              Function _scrlIntoView has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function _scrlIntoView(outer: HTMLElement | null, inner: HTMLElement | null, info: ScrollIntoViewInfo | undefined, excludeHorizontal: boolean): ScrollIntoViewInfo {
                                  if (outer && inner) {
                                      var ooft = zk(outer).revisedOffset(),
                                          ioft = info ? info.oft : zk(inner).revisedOffset(),
                                          top = ioft[1] - ooft[1]
                              Severity: Minor
                              Found in zk/src/main/resources/web/js/zk/dom.ts - About 1 hr to fix

                                Function _createWrapper has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        _createWrapper(element: JQuery): JQuery {
                                            // ZK-5354: Update animation implementation to avoid iframe reloading
                                            if (element.find('iframe').length) {
                                                return element;
                                            }
                                Severity: Minor
                                Found in zk/src/main/resources/web/js/zk/anima.ts - About 1 hr to fix

                                  Method init has 12 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                          @ContextParam(ContextType.BIND_CONTEXT) BindContext bindContext,
                                          @ContextParam(ContextType.BINDER) Binder binder,
                                          @ContextParam(ContextType.TRIGGER_EVENT) Event event,
                                          @ContextParam(ContextType.COMMAND_NAME) String commandName,
                                          @ContextParam(ContextType.EXECUTION) Execution execution,

                                    Method show has 12 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                            @ContextParam(ContextType.BIND_CONTEXT) BindContext bindContext,
                                            @ContextParam(ContextType.BINDER) Binder binder,
                                            @ContextParam(ContextType.TRIGGER_EVENT) Event event,
                                            @ContextParam(ContextType.COMMAND_NAME) String commandName,
                                            @ContextParam(ContextType.EXECUTION) Execution execution,

                                      Method Semicolon has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        final public void Semicolon() throws ParseException {
                                          Assignment();
                                          label_2:
                                          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 Concatenation has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          final public void Concatenation() throws ParseException {
                                            Math();
                                            label_11:
                                            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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language