Showing 132 of 203 total issues
Method __drawText
has a Cognitive Complexity of 32 (exceeds 24 allowed). Consider refactoring. Open
final void __drawText(Text __t, int __x, int __y, int __anchor)
throws NullPointerException
{
if (__t == null)
throw new NullPointerException("NARG");
- 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 parse
has a Cognitive Complexity of 32 (exceeds 24 allowed). Consider refactoring. Open
public static final HTTPResponseHeader parse(InputStream __in)
throws IOException, NullPointerException
{
if (__in == null)
throw new NullPointerException("NARG");
- 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 read
has 112 lines of code (exceeds 100 allowed). Consider refactoring. Open
public static final PCFFont read(InputStream __in)
throws IOException, NullPointerException
{
if (__in == null)
throw new NullPointerException("NARG");
Method __readPixels
has a Cognitive Complexity of 31 (exceeds 24 allowed). Consider refactoring. Open
private void __readPixels(Reader __cs, int __width, int __height,
int[] __data, int __pxchars, int[] __codes, int[] __palette,
boolean __wantIndex)
throws IOException
{
- 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
Consider simplifying this complex logical expression. Open
if (__a < 0 || __a > 255 || __r < 0 || __r > 255 ||
__g < 0 || __g > 255 || __b < 0 || __b > 255)
throw new IllegalArgumentException(String.format(
"EB0f %d %d %d %d", __a, __r, __g, __b));
Consider simplifying this complex logical expression. Open
if (__at < 0 || __at >= size || (__at + __l) > size ||
(__at + __l) < 0 || __o < 0 || __l < 0 ||
(__o + __l) > __b.length || (__o + __l) < 0)
throw new IndexOutOfBoundsException(
String.format("read(%d, %h, %d, %d) in %d from %d",
Consider simplifying this complex logical expression. Open
if (!((c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') ||
c == '-' || c == '.' || (isvsix && c == ':')))
throw new IllegalArgumentException("EC0f " + __h);
Consider simplifying this complex logical expression. Open
if (__ver == null || __cf == null || __tn == null ||
__in == null || __fs == null || __ms == null || __icl == null ||
__at == null)
throw new NullPointerException("NARG");
Consider simplifying this complex logical expression. Open
else if (__in instanceof boolean[] ||
__in instanceof byte[] ||
__in instanceof short[] ||
__in instanceof char[] ||
__in instanceof int[] ||
Consider simplifying this complex logical expression. Open
if (__x1 < clipsx || __x2 < clipsx || __y1 < clipsy || __y2 < clipsy ||
__x1 > clipex || __x2 > clipex || __y1 > clipey || __y2 > clipey)
return;
Consider simplifying this complex logical expression. Open
if (__o < 0 || __sl < 0 || __x < 0 || __y < 0 ||
__w <= 0 || __h <= 0 || __x + __w > imgW || __y + __h > imgH)
throw new IllegalArgumentException("IOOB");
Consider simplifying this complex logical expression. Open
if (__r < 0 || __r > 255 ||
__g < 0 || __g > 255 ||
__b < 0 || __b > 255 ||
__a < 0 || __a > 255)
throw new IllegalArgumentException("AH0t");
Consider simplifying this complex logical expression. Open
if (in.readUnsignedByte() != 137 ||
in.readUnsignedByte() != 80 ||
in.readUnsignedByte() != 78 ||
in.readUnsignedByte() != 71 ||
in.readUnsignedByte() != 13 ||
Consider simplifying this complex logical expression. Open
if ((a == 'M' && b == 'T' && c == 'h' && d == 'd') ||
(a == 'M' && b == 'T' && c == 'r' && d == 'k'))
return "audio/midi";
Consider simplifying this complex logical expression. Open
else if (!((c >= 'a' && c <= 'z') ||
(c >= 'A' && c <= 'Z') ||
(c >= '0' && c <= '9') ||
c == '_' || c == '/'))
throw new IllegalArgumentException("CW09 " + __fileName);
Consider simplifying this complex logical expression. Open
if (__ver == null || __cf == null || __tn == null || __pool == null ||
__mf == null || __mn == null || __mt == null || __avs == null)
throw new NullPointerException("NARG");
Consider simplifying this complex logical expression. Open
if (__at < 0 || __at >= size || (__at + __l) > size ||
(__at + __l) < 0 || __o < 0 || __l < 0 ||
(__o + __l) > __b.length || (__o + __l) < 0)
throw new IndexOutOfBoundsException(
String.format("write(%d, %h, %d, %d) in %d from %d",
Consider simplifying this complex logical expression. Open
if (__a < 0 || __a > 255 || __r < 0 || __r > 255 ||
__g < 0 || __g > 255 || __b < 0 || __b > 255)
throw new IllegalArgumentException(String.format(
"EB3t %d %d %d %d", __a, __r, __g, __b));
Consider simplifying this complex logical expression. Open
else if ((c >= 'a' && c <= 'z') ||
(c >= 'A' && c <= 'Z') ||
((c >= '0' && c <= '9') && i > 0 && lastChar != '/'))
result.append(c);
Consider simplifying this complex logical expression. Open
if (__a < 0 || __a > 255 || __r < 0 || __r > 255 ||
__g < 0 || __g > 255 || __b < 0 || __b > 255)
throw new IllegalArgumentException(String.format(
"EB2y %d %d %d %d", __a, __r, __g, __b));