Showing 4,841 of 7,782 total issues
Function slideIn
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
slideIn(wgt: zk.Widget, opts?: zk.SlideOptions): this {
if (_checkAnimated(this, wgt, opts, 'slideIn'))
return this;
var anchor = opts ? opts.anchor || 't' : 't',
Function create
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
create(context) {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const escapeFunc: string = context.options[0] && context.options[0]['escapeFunc'] || 'escape';
Method afterRenderHtml
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static void afterRenderHtml(Execution exec, Page page, Writer out, Object param)
throws IOException {
if (param == null)
return; // nothing to do
Method set
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings({ "unchecked", "rawtypes" })
public static final void set(Object obj, String name, Object val,
boolean autoCoerce) throws NoSuchMethodException {
try {
AccessibleObject acs;
Method formatStackTrace
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static final StringBuffer
formatStackTrace(StringBuffer sb, Throwable t, String prefix, int maxcnt) {
final StringWriter sw = new StringWriter();
t.printStackTrace(new PrintWriter(sw));
final StringBuffer trace = sw.getBuffer();
Method toInternalForm
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static final String toInternalForm(String clsName) {
final int k = clsName.indexOf('[');
if (k <= 0) { //not an array, or already in internal form
return clsName; //just return
}
Method invoke
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public Object invoke(EvaluationContext ctx,
@SuppressWarnings("rawtypes") Class[] paramTypes,
Object[] paramValues) throws ELException {
Target t = getTarget(ctx);
Method equals
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static final boolean equals(final Object obj0, final Object obj1)
throws ELException {
if (obj0 == obj1) {
return true;
} else if (obj0 == null || obj1 == null) {
Method checkVersion
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static boolean checkVersion(URL url, Document doc, boolean zk5required) throws Exception {
final Element el = doc.getRootElement().getElement("version");
if (el == null)
return true; //version is optional (3.0.5)
Method removeListener
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void removeListener(final Class<?> klass) {
if (_monitor != null && _monitor.getClass().equals(klass))
_monitor = null;
if (_pfmeter != null && _pfmeter.getClass().equals(klass))
_pfmeter = null;
Method addPrologChild
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void addPrologChild(NodeInfo child) {
if (_prokids == null)
_prokids = new LinkedList<NodeInfo>();
// fix ZK-2622
Method parseCustomAttributes
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static void parseCustomAttributes(LanguageDefinition langdef, NodeInfo parent, Element el,
AnnotationHelper annHelper) throws Exception {
//if (!el.getElements().isEmpty())
// throw new UiException(message("Child elements are not allowed for <custom-attributes>", el));
Method addForward0
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private boolean addForward0(String orgEvent, Object target, String targetEvent, Object eventData) {
if (orgEvent == null)
orgEvent = "onClick";
else if (!Events.isValid(orgEvent))
throw new IllegalArgumentException("Illegal event name: " + orgEvent);
Method write
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
/*package*/ static final void write(java.io.ObjectOutputStream s, AbstractComponent comp,
Map<String, List<EventListenerInfo>> listeners) throws IOException {
if (listeners != null) {
final Logger logio = Serializables.logio;
final boolean debug = logio.isDebugEnabled();
Method loadBuild
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static synchronized String loadBuild() {
if (_build == null) {
final String FILE = "/metainfo/zk/build";
ClassLoader cl = Thread.currentThread().getContextClassLoader();
InputStream is = null;
Method desktopDestroyed0
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void desktopDestroyed0(Desktop desktop) {
final Configuration config = _wapp.getConfiguration();
if (!_suspended.isEmpty()) { //no need to sync (better performance)
final Map<Object, List<EventProcessingThreadImpl>> map;
synchronized (_suspended) {
Method postPhase
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void postPhase(Phase phase, BindContext ctx) {
switch (phase) {
case COMMAND:
final String commandName = ctx.getCommandName();
final Binder binder = ctx.getBinder();
Method getValidates
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public Set<Property> getValidates(BindContext ctx) {
final Set<Property> properties = new HashSet<Property>(2);
//we should not check this binding need to validate or not here,
//since other validator may want to know the value of porperty of this binding, so just provide it
final Binder binder = getBinder();
Method readUTF
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private String readUTF(int index, final int utfLen, final char[] buf) {
int endIndex = index + utfLen;
byte[] b = this.b;
int strLen = 0;
int c;
Method remove
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public V remove(Object key) {
if (key == null) {
key = KeyFactory.NULL;
}