Showing 7,775 of 7,775 total issues

Method textAsAllowed has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private boolean textAsAllowed(LanguageDefinition langdef, Collection<Item> items, boolean bNativeContent) {
        boolean textAsAllowed = true;
        String xmlFound = null; //whether a XML fragment
        String zkElem = null; //a ZK element
        boolean empty = true; //whether there is anything other than whitespace
Severity: Minor
Found in zk/src/main/java/org/zkoss/zk/ui/metainfo/Parser.java - About 1 hr to fix

    Method removeEventListener has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public boolean removeEventListener(String evtnm, EventListener<? extends Event> listener) {
            if (evtnm == null || listener == null)
                throw new IllegalArgumentException("null");
    
            if (_auxinf != null && _auxinf.listeners != null) {
    Severity: Minor
    Found in zk/src/main/java/org/zkoss/zk/ui/AbstractComponent.java - About 1 hr to fix

      Method doFinally has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              public void doFinally() {
                  Throwable t = null;
                  if (_sysinitEx)
                      for (int j = 0; j < _sysinits.length; ++j) {
                          final Initiator init = _sysinits[j];
      Severity: Minor
      Found in zk/src/main/java/org/zkoss/zk/ui/impl/Initiators.java - About 1 hr to fix

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

            public boolean service(AuRequest request, boolean everError) {
                final String cmd = request.getCommand();
                if (cmd.startsWith(ON_BIND_COMMAND) || cmd.startsWith(ON_BIND_GLOBAL_COMMAND) || cmd.startsWith(ON_BIND_COMMAND_UPLOAD)) {
                    final Map<String, Object> data = request.getData();
                    String vcmd = data.get("cmd").toString();
        Severity: Minor
        Found in zkbind/src/main/java/org/zkoss/bind/BindComposer.java - About 1 hr to fix

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

              @Override
              public Object invoke(ELContext ctx, Object base, Object method, Class[] paramTypes, Object[] params)
                      throws MethodNotFoundException {
                  Object value = super.invoke(ctx, base, method, paramTypes, params);
                  // in order to support more complex case, ex: .stream().filter(x -> x.contains(vm.value))
          Severity: Minor
          Found in zkbind/src/main/java/org/zkoss/bind/xel/zel/BindELResolver.java - About 1 hr to fix

            Method getClassName has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    private String getClassName() {
                        switch (sort) {
                            case VOID:
                                return "void";
                            case BOOLEAN:

              Method hashCode has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

                Method doPropertyChange has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    private void doPropertyChange(Object base, String prop) {
                        if (_log.isDebugEnabled()) {
                            _log.debug("doPropertyChange: base=[{}],prop=[{}]", base, prop);
                        }
                
                
                Severity: Minor
                Found in zkbind/src/main/java/org/zkoss/bind/impl/BinderImpl.java - About 1 hr to fix

                  Method processAllComponentsBindings has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      private void processAllComponentsBindings(Component comp) {
                          final Binder selfBinder = BinderUtil.getBinder(comp);
                          //check if a component was binded already(by any binder)
                          if (selfBinder != null) //this component already binded ! skip all of its children
                              return;
                  Severity: Minor
                  Found in zkbind/src/main/java/org/zkoss/bind/impl/AnnotateBinderHelper.java - About 1 hr to fix

                    Method handleComponentAttached has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        protected void handleComponentAttached(Component comp) {
                            //ZK-2022, check if this component is in queue for removal 
                            //if yes, then post and do processing later
                            boolean removeMark = Boolean.TRUE.equals(comp.getAttribute(REMOVE_MARK));
                            if (removeMark) {

                      Method setPaginal has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public void setPaginal(Paginal pgi) {
                              if (!Objects.equals(pgi, _pgi)) {
                                  final Paginal old = _pgi;
                                  _pgi = pgi; //assign before detach paging, since removeChild assumes it
                      
                      
                      Severity: Minor
                      Found in zul/src/main/java/org/zkoss/zul/Grid.java - About 1 hr to fix

                        Method setModel has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public void setModel(ListModel<?> model) {
                                if (model != null) {
                                    if (!(model instanceof Selectable))
                                        throw new UiException(model.getClass() + " must implement " + Selectable.class);
                        
                        
                        Severity: Minor
                        Found in zul/src/main/java/org/zkoss/zul/Combobox.java - About 1 hr to fix

                          Method setPaginal has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public void setPaginal(Paginal pgi) {
                                  if (!Objects.equals(pgi, _pgi)) {
                                      final Paginal old = _pgi;
                                      _pgi = pgi; //assign before detach paging, since removeChild assumes it
                          
                          
                          Severity: Minor
                          Found in zul/src/main/java/org/zkoss/zul/Tree.java - About 1 hr to fix

                            Method renderProperties has 28 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);
                            
                                    if (!"normal".equals(_border))
                                        render(renderer, "border", _border);
                            Severity: Minor
                            Found in zul/src/main/java/org/zkoss/zul/LayoutRegion.java - About 1 hr to fix

                              Method organizeGroup has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  @SuppressWarnings("unchecked")
                                  protected void organizeGroup(Comparator<D> cmpr, int col) {
                                      List<List<D>> group = new LinkedList<List<D>>();
                                      List<D> gdata = null;
                                      D last = null;
                              Severity: Minor
                              Found in zul/src/main/java/org/zkoss/zul/GroupsModelArray.java - About 1 hr to fix

                                Method cleanup has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public void cleanup(Execution exec, Execution parent, List errs) throws Exception {
                                        if (parent == null) {
                                            try {
                                                if (errs == null || errs.isEmpty()) {
                                                    if (log.isDebugEnabled()) {

                                  Method getAttributeNames has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public Enumeration getAttributeNames() {
                                          final Enumeration _e = _req.getAttributeNames();
                                          final Iterator _it = _attrs.keySet().iterator();
                                          return new Enumeration() {
                                              Object _next;

                                    Method getItems has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public Collection<Treeitem> getItems() {
                                            return new AbstractCollection<Treeitem>() {
                                                public int size() {
                                                    return getItemCount();
                                                }
                                    Severity: Minor
                                    Found in zul/src/main/java/org/zkoss/zul/Treechildren.java - About 1 hr to fix

                                      Method setPaginal has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public void setPaginal(Paginal pgi) {
                                              if (!Objects.equals(pgi, _pgi)) {
                                                  final Paginal old = _pgi;
                                                  _pgi = pgi; // assign before detach paging, since removeChild
                                                  // assumes it
                                      Severity: Minor
                                      Found in zul/src/main/java/org/zkoss/zul/Listbox.java - About 1 hr to fix

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

                                            public V load(String src) throws Exception {
                                                if (log.isDebugEnabled())
                                                    log.debug("Parse {}", src);
                                                final String path = getRealPath(src);
                                                InputStream is = null;
                                        Severity: Minor
                                        Found in zweb/src/main/java/org/zkoss/web/util/resource/ExtendletLoader.java - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language