Showing 4,841 of 7,782 total issues

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

    private Thread manualOperation(final Desktop desktop) {
        return new Thread() {
            public void run() {
                try {
                    Executions.activate(desktop);

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

        @Listen("onClick = #addColumn")
        public void addColumn() {
            String columnLabel = "Column " + columnNum;
            String footLabel = "Footer " + columnNum;
            String width = "100px";

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

              public void run() {
                  boolean disconnect=false;
                  while (!disconnect) {
                      try {
                          if(updating) {

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

            public Validator getValidator1(){
                return new AbstractValidator() {
                    
                    
                    public void validate(ValidationContext ctx) {

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

              public static final String outLangStyleSheets(Execution exec, WebApp wapp, String deviceType) {
                  if (exec.isAsyncUpdate(null) || exec.getAttribute(ATTR_LANG_CSS_GENED) != null)
                      return ""; //nothing to generate
                  exec.setAttribute(ATTR_LANG_CSS_GENED, Boolean.TRUE);
          
          
          Severity: Minor
          Found in zk/src/main/java/org/zkoss/zk/ui/sys/HtmlPageRenders.java - About 1 hr to fix

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

                public static void sendEvent(Component comp, Event event) {
                    final Execution exec = Executions.getCurrent();
                    final Desktop desktop = exec.getDesktop();
                    //note: we don't use comp.getDesktop because 1) it may be null
                    //2) it may be different from the current desktop
            Severity: Minor
            Found in zk/src/main/java/org/zkoss/zk/ui/event/Events.java - About 1 hr to fix

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

                  private byte[] processDynamicWpdWithSourceMapIfAny(HttpServletRequest request, HttpServletResponse response, String pkgWpd, String path) throws Exception {
                      List<String> dividedPaths = splitSourceMapJsPathIfAny(path);
                      StringBuilder sb = new StringBuilder();
                      int index = 0;
                      String lastWpd = null;
              Severity: Minor
              Found in zk/src/main/java/org/zkoss/zk/ui/http/WpdExtendlet.java - About 1 hr to fix

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

                    private String findResourcePath(RequestContext reqctx, OutputStream out, String path, String dir, boolean locate, boolean write) throws ServletException, IOException {
                        if (path.startsWith("~./")) path = path.substring(2);
                        else if (path.charAt(0) != '/') path = Files.normalize(dir, path);
                        //source map browser issue and check source map file is available or not
                        String originalPath = "";
                Severity: Minor
                Found in zk/src/main/java/org/zkoss/zk/ui/http/WpdExtendlet.java - About 1 hr to fix

                  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 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 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 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language