Showing 4,841 of 7,782 total issues

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

  final public void Value() throws ParseException {
      AstValue jjtn001 = new AstValue(JJTVALUE);
      boolean jjtc001 = true;
      jjtree.openNodeScope(jjtn001);
    try {
Severity: Minor
Found in zel/src/main/java/org/zkoss/zel/impl/parser/ELParser.java - About 1 hr to fix

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

        public Object getValue(EvaluationContext ctx) throws ELException {
    
            // Correct evaluation requires knowledge of the whole set of nested
            // expressions, not just the current expression
            NestedState state = getNestedState();

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

          static ExpressionFactory getExpressionFactory() {
      
              ClassLoader tccl = ClassUtil.getContextClassLoader(Util.class);
              CacheValue cacheValue = null;
              ExpressionFactory factory = null;
      Severity: Minor
      Found in zel/src/main/java/org/zkoss/zel/Util.java - About 1 hr to fix

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

            @Init
            public void init() {
                listModelList.add(new Data("c", "cat"));
                listModelList.add(new Data("a", "ace"));
                listModelList.add(new Data("a", "ape"));
        Severity: Minor
        Found in zktest/src/main/java/org/zkoss/zktest/test2/F96_ZK_4595VM.java - About 1 hr to fix

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

              private static final void applyForward0(Component comp, String orgEvent, String cond) {
                  int len;
                  if (cond == null || (len = cond.length()) == 0)
                      len = (cond = orgEvent).length();
                  //if condition not specified, assume same as orgEvent (to space owenr)
          Severity: Minor
          Found in zk/src/main/java/org/zkoss/zk/ui/sys/ComponentsCtrl.java - About 1 hr to fix

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

                @SuppressWarnings("unchecked")
                public static Composer getComposer(Page page, Object[] ary) throws Exception {
                    if (ary == null || ary.length == 0)
                        return null;
            
            
            Severity: Minor
            Found in zk/src/main/java/org/zkoss/zk/ui/impl/MultiComposer.java - About 1 hr to fix

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

                  private static void desktopDestroyed(Desktop desktop) {
                      final Session sess = desktop.getSession();
                      final Execution exec = new ExecutionImpl(desktop.getWebApp().getServletContext(), null, null, desktop, null);
                      final DesktopCtrl desktopCtrl = (DesktopCtrl) desktop;
                      final Execution oldExec = desktop.getExecution();
              Severity: Minor
              Found in zk/src/main/java/org/zkoss/zk/ui/impl/SimpleDesktopCache.java - About 1 hr to fix

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

                    @SuppressWarnings({ "unchecked", "rawtypes" })
                    public static <T> T createFormProxy(T origin, Class<?> type, Class[] interfaces) {
                
                        if (origin instanceof Form)
                            return origin;
                Severity: Minor
                Found in zkbind/src/main/java/org/zkoss/bind/proxy/ProxyHelper.java - About 1 hr to fix

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

                      public Set<K> keySet() {
                          if (this.keySet == null) {
                              this.keySet = new AbstractSet<K>() {
                                  public Iterator iterator() {
                                      return createHashIterator(KEYS);
                  Severity: Minor
                  Found in zkbind/src/main/java/org/zkoss/bind/impl/WeakIdentityMap.java - About 1 hr to fix

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

                        static int compare(Object a, Object b) {
                            if (a == b) {
                                return 0;
                            }
                            if (a == null) {
                    Severity: Minor
                    Found in zkbind/src/main/java/org/zkoss/bind/impl/KeyFactory.java - About 1 hr to fix

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

                          private int doCommand(Component comp, CommandBinding commandBinding, String command, Event evt,
                                  Map<String, Object> commandArgs, Set<Property> notifys) {
                              final String evtnm = evt == null ? null : evt.getName();
                              String debugInfo = MessageFormat.format("doCommand "
                                      + "comp=[{0}],command=[{1}],evtnm=[{2}]", comp, command, evtnm);
                      Severity: Minor
                      Found in zkbind/src/main/java/org/zkoss/bind/impl/BinderImpl.java - About 1 hr to fix

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

                            public void storeForm(Component comp, String id, Form form) {
                                final String oldid = (String) comp.getAttribute(FORM_ID, Component.COMPONENT_SCOPE);
                                //check if a form exist already, allow to store a form with same id again for replacing the form
                                if (oldid != null && !oldid.equals(id)) {
                                    throw new IllegalArgumentException(
                        Severity: Minor
                        Found in zkbind/src/main/java/org/zkoss/bind/impl/BinderImpl.java - About 1 hr to fix

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

                              private void fixGroupsInfoAfterInsert(Listitem newItem) {
                                  if (_isReplacingItem) //@see Renderer#render
                                      return; //called by #insertBefore(), skip handling GroupInfo
                          
                                  if (newItem instanceof Listgroup) {
                          Severity: Minor
                          Found in zul/src/main/java/org/zkoss/zul/Listbox.java - About 1 hr to fix

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

                                public static final String generateURI(String uri, Map params, int mode) {
                                    if (uri.startsWith("~"))
                                        throw new IllegalArgumentException("~ctx not supported here: " + uri);
                            
                                    final int j = uri.indexOf('?');
                            Severity: Minor
                            Found in zweb/src/main/java/org/zkoss/web/servlet/Servlets.java - About 1 hr to fix

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

                              function ajaxHandleResponses( s, jqXHR, responses ) {
                              
                                  var ct, type, finalDataType, firstDataType,
                                      contents = s.contents,
                                      dataTypes = s.dataTypes;
                              Severity: Minor
                              Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

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

                                    function deprecate(msg, fn) {
                                        var firstTime = true;
                                
                                        return extend(function () {
                                            if (hooks.deprecationHandler != null) {
                                Severity: Minor
                                Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 1 hr to fix

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

                                  function window$mold$(out, skipper) {
                                      var uuid = this.uuid,
                                          title = this.getTitle(),
                                          caption = this.caption,
                                          contentStyleHTML = zUtl.encodeXML(this.getContentStyle()),
                                  Severity: Minor
                                  Found in zul/src/main/resources/web/js/zul/wnd/mold/window.js - About 1 hr to fix

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

                                        function checkOverflow(m) {
                                            var overflow,
                                                a = m._a;
                                    
                                            if (a && getParsingFlags(m).overflow === -2) {
                                    Severity: Minor
                                    Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 1 hr to fix

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

                                          function as(units) {
                                              if (!this.isValid()) {
                                                  return NaN;
                                              }
                                              var days,
                                      Severity: Minor
                                      Found in zk/src/main/resources/web/js/zk/ext/moment.js - About 1 hr to fix

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

                                                static encodeXML(txt: string | null, opts?: EncodeXmlOptions): string {
                                                    txt = txt != null ? String(txt) : '';
                                        
                                                    if (!opts) // speed up the replacement.
                                                        return _encodeXML0(txt);
                                        Severity: Minor
                                        Found in zk/src/main/resources/web/js/zk/utl.ts - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language