Showing 4,841 of 7,782 total issues
Function slideDown
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
slideDown(wgt: zk.Widget, opts?: zk.SlideOptions): this {
if (_checkAnimated(this, wgt, opts, 'slideDown'))
return this;
var anchor = opts ? opts.anchor || 't' : 't',
Method next
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static final Token
next(String src, String delimiters, int j, boolean whitespaceAware,
boolean parenthesis) {
final StringBuffer tksb = new StringBuffer(64);
final int len = src.length();
Method parseByName
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static final NameInfo parseByName(String pattern) {
final Map<String,Integer> names = new LinkedHashMap<String,Integer>();
final int len = pattern.length();
final StringBuffer sb = new StringBuffer(len + 32);
int j = 0;
Method message
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static final String
message(short code, String extraMsg, Locator loc) {
StringBuffer sb = new StringBuffer(64);
switch (code) {
case HIERARCHY_REQUEST_ERR:
Method checkCharacterData
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static final void checkCharacterData(String text, Locator loc) {
if (text == null)
throw new DOMException(DOMException.INVALID_CHARACTER_ERR,
"A null is not a legal XML value", loc);
Method getValue
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public Object getValue(EvaluationContext ctx)
throws ELException {
Object obj = this.children[0].getValue(ctx);
if (obj == null) {
Method Choice
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
final public void Choice() throws ParseException {
Or();
label_6:
while (true) {
if (jj_2_5(3)) {
Method ExpandBuff
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected void ExpandBuff(boolean wrapAround)
{
char[] newbuffer = new char[bufsize + 2048];
int newbufline[] = new int[bufsize + 2048];
int newbufcolumn[] = new int[bufsize + 2048];
Method wireVariables
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void wireVariables(final PsdoCompFunctor functor, final List<VariableResolver> resolvers) {
Class<?> ctrlClass = _controller.getClass();
// wire to fields
Reflections.forFields(ctrlClass, WireVariable.class, new FieldRunner<WireVariable>() {
public void onField(Class<?> clazz, Field field, WireVariable anno) {
Method updateByClient
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected void updateByClient(String name, Object value) {
Object o = getAttribute("org.zkoss.zk.ui.updateByClient");
if (!(o instanceof Boolean && ((Boolean) o).booleanValue()) && !(o instanceof String && "true".equals(o))) {
log.warn("Ignore update of " + name + "=" + value + " from client for " + this.getClass());
return; //ignored
Method inRange
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static Direction inRange(HtmlShadowElement se, Component target) {
Component hostIfAny = se.getShadowHostIfAny();
Map<Component, Integer> oldCacheMap = se.getIndexCacheMap(hostIfAny);
final boolean destroyCacheMap = oldCacheMap == null;
try {
Method addResponsesForCreatedPerSiblings
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static void addResponsesForCreatedPerSiblings(List<AuResponse> responses, Set<Component> newsibs,
Map<Component, Set<? extends Component>> croppingInfos) throws IOException {
final Component parent;
final Page page;
{
Method destroy
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void destroy() {
final ExecutionMonitor execmon = _wapp != null //just in case
? _wapp.getConfiguration().getExecutionMonitor() : null;
_rque = null; //denote it is destroyed
Method coerceToUi
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings({ "rawtypes", "unchecked" })
public Object coerceToUi(Object val, C comp, BindContext ctx) {
if (val == null) {
val = new ArrayList();
}
Method processCommandBinding
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void processCommandBinding(Component comp, String propName) {
final ComponentCtrl compCtrl = (ComponentCtrl) comp;
final Collection<Annotation> anncol = compCtrl.getAnnotations(propName, COMMAND_ANNO);
if (anncol.size() == 0)
return;
Method invokeMethod
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void invokeMethod(Binder binder, Map<String, Object> bindingArgs, Event triggeringEvent, boolean notifyChange) {
Component rootComp = binder.getView();
Object viewModel = rootComp.getAttribute(VM);
Method onListDataChange
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void onListDataChange(ListDataEvent event) {
int type = event.getType();
// ZK-4549: should ignore before handling sorting
if (getAttribute(Attributes.BEFORE_MODEL_ITEMS_RENDERED) != null
&& (type == ListDataEvent.INTERVAL_ADDED || type == ListDataEvent.INTERVAL_REMOVED))
Method renderChildren0
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void renderChildren0(Renderer renderer, Treechildren parent, Treeitem ti, Object childNode, int i)
throws Throwable {
renderer.render(ti, childNode, i);
Object v = ti.getAttribute(Attributes.MODEL_RENDERAS);
if (v != null) { //a new item is created to replace the existent one
Method doSort
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
/**/ boolean doSort(boolean ascending) {
final Comparator cmpr = ascending ? _sortAsc : _sortDsc;
if (cmpr == null)
return false;
Method parseAttrs
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static int parseAttrs(Context ctx, Map<String, String> attrs, String actnm, int from, int to)
throws DspException {
for (int j, k = from;;) {
j = skipWhitespaces(ctx, k, to);
k = nextSeparator(ctx, j, to);