Showing 4,841 of 7,782 total issues

Function slideDown has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        slideDown(wgt: zk.Widget, opts?: zk.SlideOptions): this {
            if (_checkAnimated(this, wgt, opts, 'slideDown'))
                return this;

            var anchor = opts ? opts.anchor || 't' : 't',
Severity: Minor
Found in zk/src/main/resources/web/js/zk/anima.ts - About 1 hr to fix

    Method next has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private static final Token
        next(String src, String delimiters, int j, boolean whitespaceAware,
        boolean parenthesis) {
            final StringBuffer tksb = new StringBuffer(64);
            final int len = src.length();
    Severity: Minor
    Found in zcommon/src/main/java/org/zkoss/util/Maps.java - About 1 hr to fix

      Method parseByName has 36 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public static final NameInfo parseByName(String pattern) {
              final Map<String,Integer> names = new LinkedHashMap<String,Integer>();
              final int len = pattern.length();
              final StringBuffer sb = new StringBuffer(len + 32);
              int j = 0;
      Severity: Minor
      Found in zcommon/src/main/java/org/zkoss/text/MessageFormats.java - About 1 hr to fix

        Method message has 36 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private static final String
            message(short code, String extraMsg, Locator loc) {
                StringBuffer sb = new StringBuffer(64);
                switch (code) {
                case HIERARCHY_REQUEST_ERR:
        Severity: Minor
        Found in zcommon/src/main/java/org/zkoss/idom/DOMException.java - About 1 hr to fix

          Method checkCharacterData has 36 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public static final void checkCharacterData(String text, Locator loc) {
                  if (text == null)
                      throw new DOMException(DOMException.INVALID_CHARACTER_ERR,
                          "A null is not a legal XML value", loc);
          
          
          Severity: Minor
          Found in zcommon/src/main/java/org/zkoss/idom/Verifier.java - About 1 hr to fix

            Method getValue has 36 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public Object getValue(EvaluationContext ctx)
                        throws ELException {
                    Object obj = this.children[0].getValue(ctx);
            
                    if (obj == null) {
            Severity: Minor
            Found in zel/src/main/java/org/zkoss/zel/impl/parser/AstNegative.java - About 1 hr to fix

              Method Choice has 36 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                final public void Choice() throws ParseException {
                  Or();
                  label_6:
                  while (true) {
                    if (jj_2_5(3)) {
              Severity: Minor
              Found in zel/src/main/java/org/zkoss/zel/impl/parser/ELParser.java - About 1 hr to fix

                Method ExpandBuff has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  protected void ExpandBuff(boolean wrapAround)
                  {
                    char[] newbuffer = new char[bufsize + 2048];
                    int newbufline[] = new int[bufsize + 2048];
                    int newbufcolumn[] = new int[bufsize + 2048];
                Severity: Minor
                Found in zel/src/main/java/org/zkoss/zel/impl/parser/SimpleCharStream.java - About 1 hr to fix

                  Method wireVariables has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          private void wireVariables(final PsdoCompFunctor functor, final List<VariableResolver> resolvers) {
                              Class<?> ctrlClass = _controller.getClass();
                              // wire to fields
                              Reflections.forFields(ctrlClass, WireVariable.class, new FieldRunner<WireVariable>() {
                                  public void onField(Class<?> clazz, Field field, WireVariable anno) {
                  Severity: Minor
                  Found in zk/src/main/java/org/zkoss/zk/ui/select/Selectors.java - About 1 hr to fix

                    Method updateByClient has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        protected void updateByClient(String name, Object value) {
                            Object o = getAttribute("org.zkoss.zk.ui.updateByClient");
                            if (!(o instanceof Boolean && ((Boolean) o).booleanValue()) && !(o instanceof String && "true".equals(o))) {
                                log.warn("Ignore update of " + name + "=" + value + " from client for " + this.getClass());
                                return; //ignored
                    Severity: Minor
                    Found in zk/src/main/java/org/zkoss/zk/ui/AbstractComponent.java - About 1 hr to fix

                      Method inRange has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public static Direction inRange(HtmlShadowElement se, Component target) {
                              Component hostIfAny = se.getShadowHostIfAny();
                              Map<Component, Integer> oldCacheMap = se.getIndexCacheMap(hostIfAny);
                              final boolean destroyCacheMap = oldCacheMap == null;
                              try {
                      Severity: Minor
                      Found in zk/src/main/java/org/zkoss/zk/ui/HtmlShadowElement.java - About 1 hr to fix

                        Method addResponsesForCreatedPerSiblings has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            private static void addResponsesForCreatedPerSiblings(List<AuResponse> responses, Set<Component> newsibs,
                                    Map<Component, Set<? extends Component>> croppingInfos) throws IOException {
                                final Component parent;
                                final Page page;
                                {
                        Severity: Minor
                        Found in zk/src/main/java/org/zkoss/zk/ui/impl/UiVisualizer.java - About 1 hr to fix

                          Method destroy has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public void destroy() {
                                  final ExecutionMonitor execmon = _wapp != null //just in case
                                          ? _wapp.getConfiguration().getExecutionMonitor() : null;
                          
                                  _rque = null; //denote it is destroyed
                          Severity: Minor
                          Found in zk/src/main/java/org/zkoss/zk/ui/impl/DesktopImpl.java - About 1 hr to fix

                            Method coerceToUi has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                @SuppressWarnings({ "rawtypes", "unchecked" })
                                public Object coerceToUi(Object val, C comp, BindContext ctx) {
                                    if (val == null) {
                                        val = new ArrayList();
                                    }

                              Method processCommandBinding has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  private void processCommandBinding(Component comp, String propName) {
                                      final ComponentCtrl compCtrl = (ComponentCtrl) comp;
                                      final Collection<Annotation> anncol = compCtrl.getAnnotations(propName, COMMAND_ANNO);
                                      if (anncol.size() == 0)
                                          return;
                              Severity: Minor
                              Found in zkbind/src/main/java/org/zkoss/bind/impl/AnnotateBinderHelper.java - About 1 hr to fix

                                Method invokeMethod has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public void invokeMethod(Binder binder, Map<String, Object> bindingArgs, Event triggeringEvent, boolean notifyChange) {
                                
                                        Component rootComp = binder.getView();
                                        Object viewModel = rootComp.getAttribute(VM);
                                
                                

                                  Method onListDataChange has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      private void onListDataChange(ListDataEvent event) {
                                          int type = event.getType();
                                          // ZK-4549: should ignore before handling sorting
                                          if (getAttribute(Attributes.BEFORE_MODEL_ITEMS_RENDERED) != null
                                                  && (type == ListDataEvent.INTERVAL_ADDED || type == ListDataEvent.INTERVAL_REMOVED))
                                  Severity: Minor
                                  Found in zul/src/main/java/org/zkoss/zul/Grid.java - About 1 hr to fix

                                    Method renderChildren0 has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        private void renderChildren0(Renderer renderer, Treechildren parent, Treeitem ti, Object childNode, int i)
                                                throws Throwable {
                                            renderer.render(ti, childNode, i);
                                            Object v = ti.getAttribute(Attributes.MODEL_RENDERAS);
                                            if (v != null) { //a new item is created to replace the existent one
                                    Severity: Minor
                                    Found in zul/src/main/java/org/zkoss/zul/Tree.java - About 1 hr to fix

                                      Method doSort has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          /**/ boolean doSort(boolean ascending) {
                                              final Comparator cmpr = ascending ? _sortAsc : _sortDsc;
                                              if (cmpr == null)
                                                  return false;
                                      
                                      
                                      Severity: Minor
                                      Found in zul/src/main/java/org/zkoss/zul/Listheader.java - About 1 hr to fix

                                        Method parseAttrs has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            private static int parseAttrs(Context ctx, Map<String, String> attrs, String actnm, int from, int to)
                                                    throws DspException {
                                                for (int j, k = from;;) {
                                                    j = skipWhitespaces(ctx, k, to);
                                                    k = nextSeparator(ctx, j, to);
                                        Severity: Minor
                                        Found in zweb/src/main/java/org/zkoss/web/servlet/dsp/impl/Parser.java - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language