Showing 4,841 of 7,782 total issues
File LabelLoaderImpl.java
has 341 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* LabelLoader.java
Purpose:
Description:
StateCtx
has 33 methods (exceeds 20 allowed). Consider refactoring. Open
public class StateCtx<E, C, IN> {
protected StateMachine<E, C, IN> _machine;
// local properties //
F0011
has 33 methods (exceeds 20 allowed). Consider refactoring. Open
public class F0011 extends BindComposer {
private Date bday1;
private Date bday2;
private String value1;
private String value2;
ComponentIterator
has 33 methods (exceeds 20 allowed). Consider refactoring. Open
public class ComponentIterator implements Iterator<Component> {
private final Page _page;
private final Component _root;
private final List<Selector> _selectorList;
Components
has 33 methods (exceeds 20 allowed). Consider refactoring. Open
public class Components {
private static final Logger _zklog = LoggerFactory.getLogger("org.zkoss.zk.log");
protected Components() {
}
KeyFactory
has 33 methods (exceeds 20 allowed). Consider refactoring. Open
@SuppressWarnings("unchecked")
class KeyFactory {
static final Object NULL = new Comparable() {
public int compareTo(Object obj) {
return obj == this || obj == null ? 0 : 1;
AbstractListModel
has 33 methods (exceeds 20 allowed). Consider refactoring. Open
public abstract class AbstractListModel<E>
implements ListModel<E>, Selectable<E>, java.io.Serializable, PageableModel {
private static final Logger log = LoggerFactory.getLogger(AbstractListModel.class);
Function matcherFromGroupMatchers
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
var bySet = setMatchers.length > 0,
byElement = elementMatchers.length > 0,
superMatcher = function( seed, context, xml, results, outermost ) {
var elem, j, matcher,
Method redraw
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
public void redraw(Writer out) throws java.io.IOException {
//Note: _tag == null can NOT be handled specially
final Execution exec = Executions.getCurrent();
final boolean root = getParent() == null && (getPage().isComplete()
|| (exec != null && "complete".equals(ExecutionsCtrl.getPageRedrawControl(exec))));
File ForEach.java
has 337 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* ForEach.java
Purpose:
Description:
Method newElement
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
private Element newElement(String nsURI, String tname)
throws SAXException {
if (nsURI == null) nsURI = "";
final int j = tname.indexOf(':');
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method checkAdd
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
private void checkAdd(Item newVal, Item other, boolean replace) {
//allowed type?
if (!(newVal instanceof Element) && !(newVal instanceof Text)
&& !(newVal instanceof CData) && !(newVal instanceof Comment)
&& !(newVal instanceof EntityReference) && !(newVal instanceof Binary)
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method newInstance
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
public static ExpressionFactory newInstance(Properties properties) {
ExpressionFactory result = null;
ClassLoader tccl = ClassUtil.getContextClassLoader(ExpressionFactory.class);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method jj_3R_77
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
private boolean jj_3R_77() {
Token xsp;
xsp = jj_scanpos;
if (jj_3_6()) {
jj_scanpos = xsp;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method parseConfigXml
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
public void parseConfigXml(Configuration config) {
boolean syscfgLoaded;
boolean syscfgLoadedConfig;
synchronized (ConfigParser.class) {
syscfgLoaded = _syscfgLoaded;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method addPrologChild
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
public void addPrologChild(NodeInfo child) {
if (_prokids == null)
_prokids = new LinkedList<NodeInfo>();
// fix ZK-2622
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method beforeChildAdded
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
public void beforeChildAdded(Component child, Component refChild) {
if (!(child instanceof ShadowElement))
throw new UiException("Unsupported child for shadow element: " + child);
if (refChild != null && !(refChild instanceof ShadowElement))
throw new UiException("Unsupported refChild for shadow element: " + refChild);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method readObject
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
s.defaultReadObject();
//read definition
Object def = s.readObject();
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method redraw
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
public void redraw(Writer out) throws IOException {
String ctl;
final Execution exec = getExecution();
final boolean au = exec.isAsyncUpdate(null);
if (!au && !exec.isIncluded()
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method activate
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
public boolean activate(long timeout) throws InterruptedException, DesktopUnavailableException {
final Thread curr = Thread.currentThread();
if (_active != null && _active.thread.equals(curr)) { //re-activate
++_active.nActive;
return true;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"