FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.1

Threshold is medium

Effort is min

Summary

Classes Bugs Errors Missing Classes
54 20 0 0

org.djutils.decoderdumper.Base64Decoder

Bug Category Details Line Priority
Found reliance on default encoding in org.djutils.decoderdumper.Base64Decoder.getResult(): java.io.ByteArrayOutputStream.toString() I18N DM_DEFAULT_ENCODING 60 High

org.djutils.decoderdumper.Base64Dumper

Bug Category Details Line Priority
Found reliance on default encoding in org.djutils.decoderdumper.Base64Dumper.base64Dumper(int, byte[]): java.io.ByteArrayOutputStream.toString() I18N DM_DEFAULT_ENCODING 59 High

org.djutils.decoderdumper.Dumper

Bug Category Details Line Priority
Found reliance on default encoding in org.djutils.decoderdumper.Dumper.writeOutput(String): String.getBytes() I18N DM_DEFAULT_ENCODING 116 High

org.djutils.decoderdumper.HexDumper

Bug Category Details Line Priority
Found reliance on default encoding in org.djutils.decoderdumper.HexDumper.hexDumper(int, byte[]): java.io.ByteArrayOutputStream.toString() I18N DM_DEFAULT_ENCODING 60 High

org.djutils.logger.CategoryLogger

Bug Category Details Line Priority
org.djutils.logger.CategoryLogger.categories isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 61 High
org.djutils.logger.CategoryLogger.conditionalLogger isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 67 High
org.djutils.logger.CategoryLogger.conditionalNoLogger isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 70 High
org.djutils.logger.CategoryLogger.delegateLogger isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 73 High
org.djutils.logger.CategoryLogger.noLogger isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 76 High

org.djutils.means.AbstractMean

Bug Category Details Line Priority
new org.djutils.means.AbstractMean() invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead PERFORMANCE DM_NUMBER_CTOR 99 Medium

org.djutils.primitives.Primitive

Bug Category Details Line Priority
org.djutils.primitives.Primitive.toByte(Object) invokes inefficient new Byte(byte) constructor; use Byte.valueOf(byte) instead PERFORMANCE DM_NUMBER_CTOR 266 Medium
org.djutils.primitives.Primitive.toCharacter(Object) invokes inefficient new Character(char) constructor; use Character.valueOf(char) instead PERFORMANCE DM_NUMBER_CTOR 280 Medium
org.djutils.primitives.Primitive.toInteger(Object) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead PERFORMANCE DM_NUMBER_CTOR 334 Medium
org.djutils.primitives.Primitive.toLong(Object) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead PERFORMANCE DM_NUMBER_CTOR 312 Medium
org.djutils.primitives.Primitive.toShort(Object) invokes inefficient new Short(short) constructor; use Short.valueOf(short) instead PERFORMANCE DM_NUMBER_CTOR 322 Medium

org.djutils.reflection.ClassUtil

Bug Category Details Line Priority
Using .equals to compare two Class[]'s, (equivalent to ==) in org.djutils.reflection.ClassUtil.isMoreSpecific(Constructor, Constructor) CORRECTNESS EC_BAD_ARRAY_COMPARE 629 Medium
There is an apparent infinite recursive loop in org.djutils.reflection.ClassUtil.resolveAnnotation(Object, String) CORRECTNESS IL_INFINITE_RECURSIVE_LOOP 556 High
Exception is caught when Exception is not thrown in org.djutils.reflection.ClassUtil.classFileDescriptor(URL) STYLE REC_CATCH_EXCEPTION 1074 Medium

org.djutils.reflection.FieldSignature

Bug Category Details Line Priority
org.djutils.reflection.FieldSignature.toDescriptor(Class[]) concatenates strings using + in a loop PERFORMANCE SBSC_USE_STRINGBUFFER_CONCATENATION 86 Medium

org.djutils.reflection.MethodSignature

Bug Category Details Line Priority
org.djutils.reflection.MethodSignature.getParameterTypes(String) concatenates strings using + in a loop PERFORMANCE SBSC_USE_STRINGBUFFER_CONCATENATION 149 Medium