Showing 7,775 of 7,775 total issues

Method fillTree has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void fillTree(Tree myTree, DefaultTreeModel mymodel, String treeName) {
        myTree.setItemRenderer(new TreeitemRenderer() {
            public void render(Treeitem treeItem, Object data, int id)
                    throws Exception {

    Method updateCol has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            public void updateCol(String id, int col){
                DefaultTreeNode<TestObject> rootNode;
                if (id.startsWith("Row A") || id.startsWith("SubRow A")) {
                    rootNode=(DefaultTreeNode<TestObject>)mymodelA.getRoot();
                } else {

      Method outEndJavaScriptFunc has 34 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private static void outEndJavaScriptFunc(Execution exec, Writer out, String extra, boolean aupg, boolean afterLoad)
                  throws IOException {
              final String ac = outResponseJavaScripts(exec, true);
              if (aupg) {
                  if (extra.length() > 0 || ac.length() > 0) {
      Severity: Minor
      Found in zk/src/main/java/org/zkoss/zk/ui/sys/HtmlPageRenders.java - About 1 hr to fix

        Method mapChildren has 34 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            protected void mapChildren(DesktopCtrl desktopCtrl, List<String> uuids, List<String[]> idmap, List<Object[]> evtmap,
                    Component comp) {
                for (Component p = comp.getFirstChild(); p != null; p = p.getNextSibling()) {
                    if (p instanceof StubsComponent) {
                        final String[] kiduuids = ((StubsComponent) p)._uuids;
        Severity: Minor
        Found in zk/src/main/java/org/zkoss/zk/ui/sys/StubsComponent.java - About 1 hr to fix

          Method toByteArray has 34 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  @SuppressWarnings("unchecked")
                  private byte[] toByteArray(RequestContext reqctx) throws ServletException, IOException {
                      final ByteArrayOutputStream out = new ByteArrayOutputStream();
                      final HttpServletRequest request = reqctx.request;
                      final String main = request != null ? request.getParameter("main") : null;
          Severity: Minor
          Found in zk/src/main/java/org/zkoss/zk/ui/http/WpdExtendlet.java - About 1 hr to fix

            Method addByCompoundValue has 34 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public void addByCompoundValue(String cval, Location loc) {
                    final int len = cval.length();
                    if (cval.charAt(1) == '{' && cval.charAt(len - 1) == '}') { //Format 1
                        addInV5(cval.substring(2, len - 1));
                        return;

              Method writeObject has 34 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  private synchronized void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
                      //No need to unshare annots and evthds, since stored as an independent copy
              
                      s.defaultWriteObject();
              
              
              Severity: Minor
              Found in zk/src/main/java/org/zkoss/zk/ui/AbstractComponent.java - About 1 hr to fix

                Method onPiggyback has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public void onPiggyback() {
                        // B65-ZK-2105: Need to check if desktop is null.
                        if (_desktop == null)
                            return;
                        final Configuration config = _desktop.getWebApp().getConfiguration();
                Severity: Minor
                Found in zk/src/main/java/org/zkoss/zk/ui/impl/PollingServerPush.java - About 1 hr to fix

                  Method addRequest has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      private void addRequest(AuRequest request) {
                          //case 1, BUSY_IGNORE: Drop any existent ignorable requests
                          //We don't need to iterate all because requests is added one-by-one
                          //In other words, if any temporary request, it must be the last
                          {
                  Severity: Minor
                  Found in zk/src/main/java/org/zkoss/zk/ui/impl/RequestQueueImpl.java - About 1 hr to fix

                    Method readObject has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
                            s.defaultReadObject();
                    
                            init();
                    
                    
                    Severity: Minor
                    Found in zk/src/main/java/org/zkoss/zk/ui/impl/DesktopImpl.java - About 1 hr to fix

                      Method doGet0 has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          static boolean doGet0(HttpServletRequest request, HttpServletResponse response, ServletContext ctx,
                                  ClassWebResource cwr) throws ServletException, IOException {
                              final String pi = Https.getThisPathInfo(request);
                      
                              final boolean withpi = pi != null && pi.length() != 0 && !(pi.startsWith("/_/") || "/_".equals(pi));
                      Severity: Minor
                      Found in zk/src/main/java/org/zkoss/zk/au/http/DHtmlResourceServlet.java - About 1 hr to fix

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

                            public Object invoke(Object self, Method method, Method proceed, Object[] args) throws Exception {
                                try {
                                    final String mname = method.getName();
                                    Class<?> declaringClass = method.getDeclaringClass();
                        
                        Severity: Minor
                        Found in zkbind/src/main/java/org/zkoss/bind/proxy/FormProxyHandler.java - About 1 hr to fix

                          Method readClass has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  private static byte[] readClass(final InputStream is) throws IOException {
                                      if (is == null) {
                                          throw new IOException("Class not found");
                                      }
                                      try {

                            Method doGlobalCommandExecute has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                private void doGlobalCommandExecute(Component comp, String command, Map<String, Object> commandArgs,
                                        BindContext ctx, Set<Property> notifys) {
                                    String debugInfo = MessageFormat.format("doGlobalCommandExecute comp=[{0}],command=[{1}]", comp, command);
                                    try {
                                        if (_log.isDebugEnabled()) {
                            Severity: Minor
                            Found in zkbind/src/main/java/org/zkoss/bind/impl/BinderImpl.java - About 1 hr to fix

                              Method equals has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

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

                                Method clone has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public Object clone() {
                                        final Grid clone = (Grid) super.clone();
                                        clone.init();
                                
                                        // remove cached listeners
                                Severity: Minor
                                Found in zul/src/main/java/org/zkoss/zul/Grid.java - About 1 hr to fix

                                  Method removePartial has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      private boolean removePartial(Collection<?> c, boolean isRemove) {
                                          int sz = c.size();
                                          int removed = 0;
                                          int retained = 0;
                                          int index = 0;
                                  Severity: Minor
                                  Found in zul/src/main/java/org/zkoss/zul/ListModelSet.java - About 1 hr to fix

                                    Method fixGroupsInfoBeforeInsert has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        private void fixGroupsInfoBeforeInsert(Row newItem, Row refChild, boolean isReorder) {
                                            if (_isReplacingRow) //@see Grid.Renderer#render
                                                return; //called by #insertBefore(), skip handling GroupInfo
                                    
                                            if (newItem instanceof Groupfoot) {
                                    Severity: Minor
                                    Found in zul/src/main/java/org/zkoss/zul/Rows.java - About 1 hr to fix

                                      Method stringToInts has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public static final int[] stringToInts(String numbers, int defaultValue) throws WrongValueException {
                                              if (numbers == null)
                                                  return null;
                                      
                                              List<Integer> list = new LinkedList<Integer>();
                                      Severity: Minor
                                      Found in zul/src/main/java/org/zkoss/zul/impl/Utils.java - About 1 hr to fix

                                        Function handlers has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            handlers: function( event, handlers ) {
                                                var i, handleObj, sel, matchedHandlers, matchedSelectors,
                                                    handlerQueue = [],
                                                    delegateCount = handlers.delegateCount,
                                                    cur = event.target;
                                        Severity: Minor
                                        Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language