FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.0

Threshold is low

Effort is max

Summary

Classes Bugs Errors Missing Classes
99 8 0 0

it.jnrpe.PerformanceData

Bug Category Details Line Priority
Unchecked/unconfirmed cast from java.math.BigDecimal to it.jnrpe.plugins.MetricValue of return value in it.jnrpe.PerformanceData.toPerformanceString() STYLE BC_UNCONFIRMED_CAST_OF_RETURN_VALUE 132 Low

it.jnrpe.commands.CommandInvoker

Bug Category Details Line Priority
Redundant nullcheck of commandLine, which is known to be non-null in it.jnrpe.commands.CommandInvoker.invoke(CommandDefinition, String[]) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 132 Low

it.jnrpe.net.JNRPERequestDecoder

Bug Category Details Line Priority
Found reliance on default encoding in it.jnrpe.net.JNRPERequestDecoder.ztString2String(byte[]): new String(byte[], int, int) I18N DM_DEFAULT_ENCODING 164 High
Switch statement found in it.jnrpe.net.JNRPERequestDecoder.decode(ChannelHandlerContext, ByteBuf, List) where one case falls through to the next case STYLE SF_SWITCH_FALLTHROUGH 111-113 Low

it.jnrpe.plugins.MetricValue

Bug Category Details Line Priority
it.jnrpe.plugins.MetricValue doesn't override java.math.BigDecimal.equals(Object) STYLE EQ_DOESNT_OVERRIDE_EQUALS 1 Medium

it.jnrpe.plugins.PluginProxy

Bug Category Details Line Priority
Found reliance on default encoding in it.jnrpe.plugins.PluginProxy.printHelp(): new java.io.PrintWriter(OutputStream) I18N DM_DEFAULT_ENCODING 173 High

it.jnrpe.utils.StreamManager

Bug Category Details Line Priority
it.jnrpe.utils.StreamManager.closeAll() might ignore java.lang.Exception BAD_PRACTICE DE_MIGHT_IGNORE 138 Low

it.jnrpe.utils.thresholds.Prefixes

Bug Category Details Line Priority
Use of non-localized String.toUpperCase() or String.toLowerCase() in it.jnrpe.utils.thresholds.Prefixes.fromString(String) I18N DM_CONVERT_CASE 300 Low