Showing 4,841 of 7,782 total issues
Method outStandalone
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Method buildNextShadowRootSiblingCtx
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private ComponentMatchCtx buildNextShadowRootSiblingCtx(ComponentMatchCtx ctx, HtmlShadowElement htmlShadowElement) {
ctx.moveToNextShadowSibling(htmlShadowElement);
//TODO need to match selectors
for (Selector selector : _selectorList) {
int i = selector.getSelectorIndex();
Method buildCompCtx0
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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();
Method imports
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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")))
Method readObject
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
s.defaultReadObject();
init();
Method init
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void init() {
_uri = null;
final List<Object[]> results = new LinkedList<Object[]>();
for (int j = 0, len = _fulfill.length();;) {
int k = j;
Method endUpdate
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Method checkBinding
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
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);
Method getValue
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
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
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>();
Method processChildrenPromptBindings
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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();
Method put
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public V put(K key, V value) {
if (key == null) {
key = (K) KeyFactory.NULL;
}
Method processGlobalCommandBinding
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Method evaluateTemplate
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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 {
Method renderProperties
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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)
Method service
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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();
Function closest
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
closest: function( selectors, context ) {
var cur,
i = 0,
l = this.length,
matched = [],
Function _bc_rec_mul
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);