Showing 4,841 of 7,782 total issues

Method outStandalone has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static final void outStandalone(Execution exec, Component comp, Writer out) throws IOException {
        if (ComponentRedraws.beforeRedraw(false) >= 0)
            throw new InternalError("Not possible: " + comp);

        final String extra;
Severity: Minor
Found in zk/src/main/java/org/zkoss/zk/ui/sys/HtmlPageRenders.java - About 1 hr to fix

    Method buildNextShadowRootSiblingCtx has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private ComponentMatchCtx buildNextShadowRootSiblingCtx(ComponentMatchCtx ctx, HtmlShadowElement htmlShadowElement) {
            ctx.moveToNextShadowSibling(htmlShadowElement);
            //TODO need to match selectors
            for (Selector selector : _selectorList) {
                int i = selector.getSelectorIndex();
    Severity: Minor
    Found in zk/src/main/java/org/zkoss/zk/ui/select/impl/ComponentIterator.java - About 1 hr to fix

      Method buildCompCtx0 has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private ComponentMatchCtx buildCompCtx0(ComponentMatchCtx ctx) {
              for (Selector selector : _selectorList) {
                  int i = selector.getSelectorIndex();
                  int posEnd = _posOffset > 0 ? _posOffset - 1 : 0;
                  int len = selector.size();
      Severity: Minor
      Found in zk/src/main/java/org/zkoss/zk/ui/select/impl/ComponentIterator.java - About 1 hr to fix

        Method imports has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public void imports(PageDefinition pgdef, String[] directives) {
                if (directives == null || contains(directives, "import"))
                    _clsresolver.addAll(pgdef._clsresolver);
        
                if (pgdef._initdefs != null && (directives == null || contains(directives, "init")))
        Severity: Minor
        Found in zk/src/main/java/org/zkoss/zk/ui/metainfo/PageDefinition.java - About 1 hr to fix

          Method readObject has 35 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/PageImpl.java - About 1 hr to fix

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

                    private void init() {
                        _uri = null;
                        final List<Object[]> results = new LinkedList<Object[]>();
                        for (int j = 0, len = _fulfill.length();;) {
                            int k = j;
            Severity: Minor
            Found in zk/src/main/java/org/zkoss/zk/ui/impl/UiEngineImpl.java - About 1 hr to fix

              Method endUpdate has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public void endUpdate(Execution exec) throws IOException {
                      final Desktop desktop = exec.getDesktop();
                      final DesktopCtrl desktopCtrl = (DesktopCtrl) desktop;
                      final Configuration config = desktop.getWebApp().getConfiguration();
                      final ExecutionCtrl execCtrl = (ExecutionCtrl) exec;
              Severity: Minor
              Found in zk/src/main/java/org/zkoss/zk/ui/impl/UiEngineImpl.java - About 1 hr to fix

                Method checkBinding has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public void checkBinding(Binder binder, Component comp) {
                        final ComponentCtrl compCtrl = (ComponentCtrl) comp;
                        for (String p : compCtrl.getAnnotatedProperties()) {
                            if (BINDER_ATTR.equals(p) || VIEW_MODEL_ATTR.equals(p) || VALIDATION_MESSAGES_ATTR.equals(p)) {
                                continue;

                  Method newInterpreter has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public static final Interpreter newInterpreter(String zslang, Page owner) {
                          if (zslang == null || zslang.length() == 0 || owner == null)
                              throw new IllegalArgumentException("empty or null");
                  
                          final String zsl = zslang.toLowerCase(java.util.Locale.ENGLISH);
                  Severity: Minor
                  Found in zk/src/main/java/org/zkoss/zk/scripting/Interpreters.java - About 1 hr to fix

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

                        public Object getValue(ELContext context, Object base, Object property)
                                throws NullPointerException, PropertyNotFoundException, ELException {
                            if (context == null) {
                                throw new NullPointerException();
                            }

                      Method coerceToBean has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public Object coerceToBean(Object val, Component comp, BindContext ctx) {
                              final String format = (String) ctx.getConverterArg("format");
                              if (format == null)
                                  throw new NullPointerException("format attribute not found");
                              final String dateStr = (String) val;

                        Method processPropertySaveBindings has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            private void processPropertySaveBindings(Component comp, String propName, Annotation ann,
                                    ExpressionAnnoInfo converterInfo, ExpressionAnnoInfo validatorInfo) {
                                String saveExpr = null;
                                final List<String> beforeCmds = new ArrayList<String>();
                                final List<String> afterCmds = new ArrayList<String>();
                        Severity: Minor
                        Found in zkbind/src/main/java/org/zkoss/bind/impl/AnnotateBinderHelper.java - About 1 hr to fix

                          Method processChildrenPromptBindings has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              private void processChildrenPromptBindings(Component comp, Annotation ann, ExpressionAnnoInfo converterInfo) {
                                  String expr = null;
                                  Map<String, String[]> args = null;
                                  for (final Iterator<Entry<String, String[]>> it = ann.getAttributes().entrySet().iterator(); it.hasNext();) {
                                      final Entry<String, String[]> entry = it.next();
                          Severity: Minor
                          Found in zkbind/src/main/java/org/zkoss/bind/impl/AnnotateBinderHelper.java - About 1 hr to fix

                            Method put has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public V put(K key, V value) {
                                    if (key == null) {
                                        key = (K) KeyFactory.NULL;
                                    }
                            
                            
                            Severity: Minor
                            Found in zkbind/src/main/java/org/zkoss/bind/impl/WeakIdentityMap.java - About 1 hr to fix

                              Method processGlobalCommandBinding has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  private void processGlobalCommandBinding(Component comp, String propName) {
                                      final ComponentCtrl compCtrl = (ComponentCtrl) comp;
                                      final Collection<Annotation> anncol = compCtrl.getAnnotations(propName, GLOBAL_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 evaluateTemplate has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    protected Object evaluateTemplate(Component eachComp, final Object eachData, final int index, final int size,
                                            final String subType) {
                                        Object oldEach = null;
                                        Object oldStatus = null;
                                        try {
                                Severity: Minor
                                Found in zkbind/src/main/java/org/zkoss/bind/impl/TemplateResolverImpl.java - About 1 hr to fix

                                  Method renderProperties has 35 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 (!_btnVisible)
                                              renderer.render("buttonVisible", false);
                                          if (!_lenient)
                                  Severity: Minor
                                  Found in zul/src/main/java/org/zkoss/zul/Datebox.java - About 1 hr to fix

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

                                        public void service(HttpServletRequest request, HttpServletResponse response, String path)
                                                throws ServletException, IOException {
                                            String resourceCache = Library.getProperty("org.zkoss.zk.WCS.cache");
                                            if (resourceCache != null && "false".equalsIgnoreCase(resourceCache))
                                                _cache.clear();
                                    Severity: Minor
                                    Found in zweb/src/main/java/org/zkoss/web/util/resource/DspExtendlet.java - About 1 hr to fix

                                      Function closest has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          closest: function( selectors, context ) {
                                              var cur,
                                                  i = 0,
                                                  l = this.length,
                                                  matched = [],
                                      Severity: Minor
                                      Found in zk/src/main/resources/web/js/zk/ext/jquery.js - About 1 hr to fix

                                        Function _bc_rec_mul has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        libbcmath._bc_rec_mul = function(a, b, c, d, e) {
                                            var g, f, h, k, l, m, n;
                                            if (b + d < libbcmath.MUL_BASE_DIGITS || b < libbcmath.MUL_SMALL_DIGITS || d <
                                                libbcmath.MUL_SMALL_DIGITS) return libbcmath._bc_simp_mul(a, b, c, d, e);
                                            e = Math.floor((libbcmath.MAX(b, d) + 1) / 2);
                                        Severity: Minor
                                        Found in zktest/src/main/webapp/test2/js/zk-3913-PDF417lib.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language