Showing 4,841 of 7,782 total issues

Method doView has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException {
        //try parameter first and then attribute
        boolean bRichlet = false;
        String path = request.getParameter(ATTR_PAGE);
        if (path == null) {
Severity: Minor
Found in zk/src/main/java/org/zkoss/zk/ui/http/DHtmlLayoutPortlet.java - About 1 hr to fix

    Method toHTML has 46 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public String toHTML(PageDefinition pgdef, Page page) {
            final Evaluator eval = pgdef.getEvaluator();
            if (_cond != null && !_cond.isEffective(eval, page))
                return "";
    
    
    Severity: Minor
    Found in zk/src/main/java/org/zkoss/zk/ui/metainfo/HeaderInfo.java - About 1 hr to fix

      Method clearChildren has 46 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public void clearChildren() {
              AbstractComponent hostIfAny = (AbstractComponent) getShadowHostIfAny();
              try {
                  if (hostIfAny != null) {
                      hostIfAny.disableHostChanged();
      Severity: Minor
      Found in zk/src/main/java/org/zkoss/zk/ui/HtmlShadowElement.java - About 1 hr to fix

        Method handleError has 46 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private static final void handleError(Throwable ex, UiVisualizer uv, List<Throwable> errs) {
                final Throwable t = Exceptions.findCause(ex, Expectable.class);
                if (t == null) {
                    if (ex instanceof org.xml.sax.SAXException
                            || ex instanceof org.zkoss.zk.ui.metainfo.PropertyNotFoundException)
        Severity: Minor
        Found in zk/src/main/java/org/zkoss/zk/ui/impl/UiEngineImpl.java - About 1 hr to fix

          Method setExecution has 46 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public void setExecution(Execution exec) {
                  _execution = exec;
                  //http param
                  _paramResolvers.put(QueryParam.class, new ParamResolver<Annotation>() {
          
          
          Severity: Minor
          Found in zkbind/src/main/java/org/zkoss/bind/impl/ParamCall.java - About 1 hr to fix

            Method load has 46 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                @SuppressWarnings("unchecked")
                public void load(BindContext ctx) {
                    final Component comp = getComponent(); //ctx.getComponent();
                    final BindEvaluatorX eval = getBinder().getEvaluatorX();
                    final BindingExecutionInfoCollector collector = ((BinderCtrl) getBinder()).getBindingExecutionInfoCollector();

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

                  public void service(org.zkoss.zk.au.AuRequest request, boolean everError) {
                      final String cmd = request.getCommand();
                      if (cmd.equals(Events.ON_SELECT)) {
                          final Tabbox tabbox = getTabbox();
                          final Set<Tab> prevSeldItems = new LinkedHashSet<Tab>();
              Severity: Minor
              Found in zul/src/main/java/org/zkoss/zul/Tab.java - About 1 hr to fix

                Method fixGroupsInfoAfterRemove has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    private void fixGroupsInfoAfterRemove(Row child, int index) {
                        if (!_isReplacingRow) { //@see Grid.Renderer#render 
                            //called by #removeChild, handling GroupInfo if !isReplcingRow
                            if (child instanceof Group) {
                                int[] prev = null, remove = null;
                Severity: Minor
                Found in zul/src/main/java/org/zkoss/zul/Rows.java - About 1 hr to fix

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

                      public void service(org.zkoss.zk.au.AuRequest request, boolean everError) {
                          final String cmd = request.getCommand();
                          if (cmd.equals(Events.ON_CHANGE)) {
                              try {
                                  final Object oldval = _value;
                  Severity: Minor
                  Found in zul/src/main/java/org/zkoss/zul/impl/InputElement.java - About 1 hr to fix

                    Function tokenize has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
                        var matched, match, tokens, type,
                            soFar, groups, preFilters,
                            cached = tokenCache[ selector + " " ];
                    
                    
                    Severity: Minor
                    Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

                      Method wireOthers has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          private void wireOthers(Object x) {
                              //check methods
                              final Class cls = _controller.getClass();
                              Method[] mtds = cls.getMethods();
                              for (int j = 0; j < mtds.length; ++j) {
                      Severity: Minor
                      Found in zk/src/main/java/org/zkoss/zk/ui/util/ConventionWire.java - About 1 hr to fix

                        Method visualizeErrors has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            private final void visualizeErrors(Execution exec, UiVisualizer uv, List<Throwable> errs) {
                                final StringBuffer sb = new StringBuffer(128);
                                for (Throwable t : errs) {
                                    if (sb.length() > 0)
                                        sb.append('\n');
                        Severity: Minor
                        Found in zk/src/main/java/org/zkoss/zk/ui/impl/UiEngineImpl.java - About 1 hr to fix

                          Method processPropertyBindings has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              private void processPropertyBindings(Component comp, String propName) {
                                  final ComponentCtrl compCtrl = (ComponentCtrl) comp;
                          
                                  //validator and converter information
                                  ExpressionAnnoInfo validatorInfo = parseValidator(comp, propName);
                          Severity: Minor
                          Found in zkbind/src/main/java/org/zkoss/bind/impl/AnnotateBinderHelper.java - About 1 hr to fix

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

                                public void setSort(String type) {
                                    if (type == null)
                                        return;
                                    if (type.startsWith("client")) {
                                        try {
                            Severity: Minor
                            Found in zul/src/main/java/org/zkoss/zul/Listheader.java - About 1 hr to fix

                              Method setSort has 45 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")) {
                                          try {
                              Severity: Minor
                              Found in zul/src/main/java/org/zkoss/zul/Treecol.java - About 1 hr to fix

                                Method updateVisibleCount has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    private void updateVisibleCount(Listitem item, boolean isRemove) {
                                        if (item instanceof Listgroup || item.isVisible()) {
                                            final Listgroup g = getListgroupAt(item.getIndex());
                                
                                            // We shall update the number of the visible item in the following
                                Severity: Minor
                                Found in zul/src/main/java/org/zkoss/zul/Listbox.java - About 1 hr to fix

                                  Function matcherFromTokens has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function matcherFromTokens( tokens, selector/* Jumper Chen, Potix, 20130509*/ ) {
                                      var checkContext, matcher, j,
                                          len = tokens.length,
                                          leadingRelative = Expr.relative[ tokens[ 0 ].type ],
                                          implicitRelative = leadingRelative || Expr.relative[ " " ],
                                  Severity: Minor
                                  Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

                                    Function val has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        val: function( value ) {
                                            var hooks, ret, valueIsFunction,
                                                elem = this[ 0 ];
                                    
                                            if ( !arguments.length ) {
                                    Severity: Minor
                                    Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

                                      Function zkx has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          export function zkx(wi?: WidgetInfo, extra?: ExtraInfo, aucmds?: AuCmds, js?: string): void { //extra is either delay (BL) or [stub, filter] (AU)
                                              zk.mounting = true;
                                      
                                              try {
                                                  if (js) jq.globalEval(js);
                                      Severity: Minor
                                      Found in zk/src/main/resources/web/js/zk/mount.ts - About 1 hr to fix

                                        Method load has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public static final TaglibDefinition load(Element root) throws Exception {
                                                final TaglibDefinition tagdef = new TaglibDefinition();
                                                Exception excp = null;
                                                for (Element e: root.getElements("function")) {
                                                    final String name = IDOMs.getRequiredElementValue(e, "name");
                                        Severity: Minor
                                        Found in zcommon/src/main/java/org/zkoss/xel/taglib/Taglibs.java - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language