Showing 132 of 203 total issues
Method __unfilter
has a Cognitive Complexity of 28 (exceeds 24 allowed). Consider refactoring. Open
Open
private byte[] __unfilter(InputStream __in, int __bpp)
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
Avoid deeply nested control flow statements. Open
Open
if (dig < 0)
throw new JsonParsingException(
String.format("bx", hex[i]), jl);
Avoid deeply nested control flow statements. Open
Open
for (JDWPPacket copy : deferred)
try (JDWPPacket packet = copy)
{
// Set sizes
packet.setIdSizes(sizes);
Avoid deeply nested control flow statements. Open
Open
if (x >= 0 && y >= 0 && z >= 0)
return (x << 6) | (y << 3) | (z);
Avoid deeply nested control flow statements. Open
Open
if (file.endsWith(csvType.rootedFileName))
{
targetCsv = csvType;
break;
}
Avoid deeply nested control flow statements. Open
Open
if (buf[gap] == '\n')
rp = ln + 2;
// Otherwise do not
else
Avoid deeply nested control flow statements. Open
Open
if (x >= 0 && y >= 0)
return (x << 4) | (y);
Method __specifier
has a Cognitive Complexity of 27 (exceeds 24 allowed). Consider refactoring. Open
Open
private static int __specifier(__PrintFState__ __pf, int __base,
String __fmt)
throws IllegalArgumentException, NullPointerException
{
if (__pf == null || __fmt == null)
- 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
Avoid deeply nested control flow statements. Open
Open
if ((hex[i] = this.__read()) < 0)
throw new JsonParsingException(
"ueof", jl);
Avoid deeply nested control flow statements. Open
Open
if (viewObject.readValue(thread, fieldId, value))
return viewThread.fromBracket(value.get());
Consider simplifying this complex logical expression. Open
Open
if (__show && (__form != null && current == __form) ||
(__form == null && frame.isVisible() && current == null))
return;
Consider simplifying this complex logical expression. Open
Open
if ((includeMain && isMain) ||
(includeDaemon && isDaemon) ||
(!isMain && !isDaemon))
count++;
Consider simplifying this complex logical expression. Open
Open
if (superClass != null || parent != null ||
(interfaceClasses != null && !interfaceClasses.isEmpty()) ||
(childrenClasses != null && !childrenClasses.isEmpty()))
{
__writer.listStart();
Consider simplifying this complex logical expression. Open
Open
if (c == ',' || c == '"' ||
(c <= ' ' && i == 0) || (c <= ' ' && i == (n - 1)))
return true;
Consider simplifying this complex logical expression. Open
Open
if (!(__v instanceof SpringObject) &&
!(__v instanceof Boolean) &&
!(__v instanceof Integer) &&
!(__v instanceof Long) &&
!(__v instanceof Float) &&
Consider simplifying this complex logical expression. Open
Open
if (__jar == null || __jarOffset < 0 || __b == null ||
__o < 0 || __l < 0 || (__o + __l) > __b.length)
throw new MLECallError("Invalid parameters.");
Consider simplifying this complex logical expression. Open
Open
if (__r < 0 || __r > 255 || __g < 0 || __g > 255 || __b < 0 ||
__b > 255)
throw new IllegalArgumentException(String.format("DA01 %d %d %d",
__r, __g, __b));
Consider simplifying this complex logical expression. Open
Open
if (__aotSettings == null || __settings == null ||
__archive == null || __csv == null || __fileName == null ||
__romSource == null)
throw new NullPointerException("NARG");
Consider simplifying this complex logical expression. Open
Open
if (this.isPrivate() || this.isStatic() || this.isFinal() || this
.isSynchronized() || this.isNative() || this.isStrict())
throw new InvalidClassFormatException(
String.format("JC3l %s", this));
Consider simplifying this complex logical expression. Open
Open
if (__o != SocketConnection.KEEPALIVE || __o != SocketConnection.LINGER || __o != SocketConnection.SNDBUF ||
__o != SocketConnection.RCVBUF || __o != SocketConnection.DELAY || __o != SocketConnection.TIMEOUT)
throw new IllegalArgumentException("EC0n " + __o);