SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.8.6

Threshold is

Effort is

Summary

Classes Bugs Errors Missing Classes
190 112 0 3

Files

Class Bugs
de.powerstat.validation.containers.GroupOf 3
de.powerstat.validation.containers.NTuple15 2
de.powerstat.validation.containers.NTuple16 2
de.powerstat.validation.containers.test.GroupOfTests 1
de.powerstat.validation.entities.Person 2
de.powerstat.validation.values.Address 10
de.powerstat.validation.values.AddressWithWGS84Position 11
de.powerstat.validation.values.Hostname 1
de.powerstat.validation.values.IPV4Address 15
de.powerstat.validation.values.MACAddress 15
de.powerstat.validation.values.impl.IBANVerifier 1
de.powerstat.validation.values.impl.IBANVerifierAbstractFactory 3
de.powerstat.validation.values.strategies.PasswordConfigurableStrategy 2
de.powerstat.validation.values.strategies.UsernameConfigurableStrategy 2
de.powerstat.validation.values.test.DayTests 4
de.powerstat.validation.values.test.HourTests 4
de.powerstat.validation.values.test.MillisecondTests 4
de.powerstat.validation.values.test.MinuteTests 4
de.powerstat.validation.values.test.MonthDayTests 4
de.powerstat.validation.values.test.MonthTests 4
de.powerstat.validation.values.test.SecondTests 4
de.powerstat.validation.values.test.UUIDTests 5
de.powerstat.validation.values.test.WeekTests 4
de.powerstat.validation.values.test.YearTests 5

de.powerstat.validation.containers.GroupOf

Bug Category Details Line Priority
Exception thrown in class de.powerstat.validation.containers.GroupOf at new de.powerstat.validation.containers.GroupOf(String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 51 Medium
Dead store to initLength in de.powerstat.validation.containers.GroupOf.toString() STYLE DLS_DEAD_LOCAL_STORE 127 Medium
java/lang/StringBuilder.append(Ljava/lang/String;)Ljava/lang/StringBuilder; is potentially injected into an XML string in method de.powerstat.validation.containers.GroupOf.toString(). SECURITY POTENTIAL_XML_INJECTION 125 Medium

de.powerstat.validation.containers.NTuple15

Bug Category Details Line Priority
Method de.powerstat.validation.containers.NTuple15.compareTo(NTuple15) is excessively complex, with a cyclomatic complexity of 100 STYLE CC_CYCLOMATIC_COMPLEXITY 516 Medium
Method de.powerstat.validation.containers.NTuple15.equals(Object) is excessively complex, with a cyclomatic complexity of 74 STYLE CC_CYCLOMATIC_COMPLEXITY 401 Medium

de.powerstat.validation.containers.NTuple16

Bug Category Details Line Priority
Method de.powerstat.validation.containers.NTuple16.compareTo(NTuple16) is excessively complex, with a cyclomatic complexity of 101 STYLE CC_CYCLOMATIC_COMPLEXITY 544 High
Method de.powerstat.validation.containers.NTuple16.equals(Object) is excessively complex, with a cyclomatic complexity of 75 STYLE CC_CYCLOMATIC_COMPLEXITY 424 Medium

de.powerstat.validation.containers.test.GroupOfTests

Bug Category Details Line Priority
Call to equals(null) in de.powerstat.validation.containers.test.GroupOfTests.lambda$testEquals$12(GroupOf) CORRECTNESS EC_NULL_ARG 132 Medium

de.powerstat.validation.entities.Person

Bug Category Details Line Priority
Class de.powerstat.validation.entities.Person defines fields that are used only as locals CORRECTNESS FCBL_FIELD_COULD_BE_LOCAL 92 Medium
Class de.powerstat.validation.entities.Person defines fields that are used only as locals CORRECTNESS FCBL_FIELD_COULD_BE_LOCAL 72 Medium

de.powerstat.validation.values.Address

Bug Category Details Line Priority
Method de.powerstat.validation.values.Address.of(String) accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 682 Medium
Method de.powerstat.validation.values.Address.of(String) accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 683 Medium
Method de.powerstat.validation.values.Address.of(String) accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 684 Medium
Method de.powerstat.validation.values.Address.of(String) accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 685 Medium
Method de.powerstat.validation.values.Address.of(String) accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 686 Medium

de.powerstat.validation.values.AddressWithWGS84Position

Bug Category Details Line Priority
Method de.powerstat.validation.values.AddressWithWGS84Position.of(String) accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 125 Medium
Method de.powerstat.validation.values.AddressWithWGS84Position.of(String) accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 126 Medium
Method de.powerstat.validation.values.AddressWithWGS84Position.of(String) accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 127 Medium
Method de.powerstat.validation.values.AddressWithWGS84Position.of(String) accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 128 Medium
Method de.powerstat.validation.values.AddressWithWGS84Position.of(String) accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 129 Medium
Null passed for non-null parameter of of(Country, PostalCode, City, Province, District, Street, BuildingNr, BuildingName, SubBuilding, PoBoxNumber, Department, Neighbourhood, Block, BFPONumber, Lines, WGS84Position) in de.powerstat.validation.values.AddressWithWGS84Position.of(String) CORRECTNESS NP_NULL_PARAM_DEREF 140 High

de.powerstat.validation.values.Hostname

Bug Category Details Line Priority
method de.powerstat.validation.values.Hostname.exist() converts an exception into a boolean 'error code' value STYLE EXS_EXCEPTION_SOFTENING_RETURN_FALSE 237 Medium

de.powerstat.validation.values.IPV4Address

Bug Category Details Line Priority
Method de.powerstat.validation.values.IPV4Address.isPrivate() accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 126 Medium
Method de.powerstat.validation.values.IPV4Address.isPrivate() accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 132 Medium
Method de.powerstat.validation.values.IPV4Address.isSpecial() accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 164 Medium
Method de.powerstat.validation.values.IPV4Address.isSpecial() accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 165 Medium
Method de.powerstat.validation.values.IPV4Address.isSpecial() accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 166 Medium
Method de.powerstat.validation.values.IPV4Address.isSpecial() accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 167 Medium
Method de.powerstat.validation.values.IPV4Address.isSpecial() accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 168 Medium
Method de.powerstat.validation.values.IPV4Address.isSpecial() accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 175 Medium
Method de.powerstat.validation.values.IPV4Address.isSpecial() accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 183 Medium

de.powerstat.validation.values.MACAddress

Bug Category Details Line Priority
Method de.powerstat.validation.values.MACAddress.getOUI() accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 251 Medium
Method de.powerstat.validation.values.MACAddress.isBroadcast() accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 183 Medium
Method de.powerstat.validation.values.MACAddress.isIPV4Multicast() accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 216 Medium
Method de.powerstat.validation.values.MACAddress.isIPV6Multicast() accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 227 Medium
Method de.powerstat.validation.values.MACAddress.isVRRP() accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 238 Medium

de.powerstat.validation.values.impl.IBANVerifier

Bug Category Details Line Priority
Class de.powerstat.validation.values.impl.IBANVerifier defines static field "de.powerstat.validation.values.impl.IBANVerifier.CACHE" which appears to allow memory bloat CORRECTNESS PMB_POSSIBLE_MEMORY_BLOAT Not available Medium

de.powerstat.validation.values.impl.IBANVerifierAbstractFactory

Bug Category Details Line Priority
Method de.powerstat.validation.values.impl.IBANVerifierAbstractFactory.createIBANVerifier(Country) is excessively complex, with a cyclomatic complexity of 375 STYLE CC_CYCLOMATIC_COMPLEXITY 38 High
Method de.powerstat.validation.values.impl.IBANVerifierAbstractFactory.createIBANVerifier(Country) excessively uses methods of another class STYLE CE_CLASS_ENVY 38-228 Medium
de.powerstat.validation.values.impl.IBANVerifierAbstractFactory.createIBANVerifier(Country): 1st parameter 'country' could be declared as de.powerstat.validation.interfaces.IValueObject instead STYLE OCP_OVERLY_CONCRETE_PARAMETER 38 Medium

de.powerstat.validation.values.strategies.PasswordConfigurableStrategy

Bug Category Details Line Priority
Exception thrown in class de.powerstat.validation.values.strategies.PasswordConfigurableStrategy at new de.powerstat.validation.values.strategies.PasswordConfigurableStrategy(int, int, String, int, int, int, int, int, int) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 101 Medium
Class de.powerstat.validation.values.strategies.PasswordConfigurableStrategy defines static field "de.powerstat.validation.values.strategies.PasswordConfigurableStrategy.CACHE" which appears to allow memory bloat CORRECTNESS PMB_POSSIBLE_MEMORY_BLOAT Not available Medium

de.powerstat.validation.values.strategies.UsernameConfigurableStrategy

Bug Category Details Line Priority
Exception thrown in class de.powerstat.validation.values.strategies.UsernameConfigurableStrategy at new de.powerstat.validation.values.strategies.UsernameConfigurableStrategy(int, int, String, UsernameConfigurableStrategy$HandleEMail) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 121 Medium
Class de.powerstat.validation.values.strategies.UsernameConfigurableStrategy defines static field "de.powerstat.validation.values.strategies.UsernameConfigurableStrategy.CACHE" which appears to allow memory bloat CORRECTNESS PMB_POSSIBLE_MEMORY_BLOAT Not available Medium

de.powerstat.validation.values.test.DayTests

Bug Category Details Line Priority
Return value of de.powerstat.validation.values.Day.add(Days) ignored, is this OK in de.powerstat.validation.values.test.DayTests.lambda$testAdd2$16(Day, Days) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 215 Medium
Return value of de.powerstat.validation.values.Day.decrement() ignored, is this OK in de.powerstat.validation.values.test.DayTests.lambda$testDecrement2$19(Day) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 298 Medium
Return value of de.powerstat.validation.values.Day.increment() ignored, is this OK in de.powerstat.validation.values.test.DayTests.lambda$testIncrement2$18(Day) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 271 Medium
Return value of de.powerstat.validation.values.Day.subtract(Days) ignored, is this OK in de.powerstat.validation.values.test.DayTests.lambda$testSubtract2$17(Day, Days) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 244 Medium

de.powerstat.validation.values.test.HourTests

Bug Category Details Line Priority
Return value of de.powerstat.validation.values.Hour.add(Hours) ignored, is this OK in de.powerstat.validation.values.test.HourTests.lambda$testAdd2$16(Hour, Hours) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 210 Medium
Return value of de.powerstat.validation.values.Hour.decrement() ignored, is this OK in de.powerstat.validation.values.test.HourTests.lambda$testDecrement2$19(Hour) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 293 Medium
Return value of de.powerstat.validation.values.Hour.increment() ignored, is this OK in de.powerstat.validation.values.test.HourTests.lambda$testIncrement2$18(Hour) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 266 Medium
Return value of de.powerstat.validation.values.Hour.subtract(Hours) ignored, is this OK in de.powerstat.validation.values.test.HourTests.lambda$testSubtract2$17(Hour, Hours) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 239 Medium

de.powerstat.validation.values.test.MillisecondTests

Bug Category Details Line Priority
Return value of de.powerstat.validation.values.Millisecond.add(Milliseconds) ignored, is this OK in de.powerstat.validation.values.test.MillisecondTests.lambda$testAdd2$16(Millisecond, Milliseconds) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 210 Medium
Return value of de.powerstat.validation.values.Millisecond.decrement() ignored, is this OK in de.powerstat.validation.values.test.MillisecondTests.lambda$testDecrement2$19(Millisecond) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 293 Medium
Return value of de.powerstat.validation.values.Millisecond.increment() ignored, is this OK in de.powerstat.validation.values.test.MillisecondTests.lambda$testIncrement2$18(Millisecond) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 266 Medium
Return value of de.powerstat.validation.values.Millisecond.subtract(Milliseconds) ignored, is this OK in de.powerstat.validation.values.test.MillisecondTests.lambda$testSubtract2$17(Millisecond, Milliseconds) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 239 Medium

de.powerstat.validation.values.test.MinuteTests

Bug Category Details Line Priority
Return value of de.powerstat.validation.values.Minute.add(Minutes) ignored, is this OK in de.powerstat.validation.values.test.MinuteTests.lambda$testAdd2$16(Minute, Minutes) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 210 Medium
Return value of de.powerstat.validation.values.Minute.decrement() ignored, is this OK in de.powerstat.validation.values.test.MinuteTests.lambda$testDecrement2$19(Minute) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 293 Medium
Return value of de.powerstat.validation.values.Minute.increment() ignored, is this OK in de.powerstat.validation.values.test.MinuteTests.lambda$testIncrement2$18(Minute) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 266 Medium
Return value of de.powerstat.validation.values.Minute.subtract(Minutes) ignored, is this OK in de.powerstat.validation.values.test.MinuteTests.lambda$testSubtract2$17(Minute, Minutes) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 239 Medium

de.powerstat.validation.values.test.MonthDayTests

Bug Category Details Line Priority
Return value of de.powerstat.validation.values.MonthDay.add(Months) ignored, is this OK in de.powerstat.validation.values.test.MonthDayTests.lambda$testAdd2$26(MonthDay, Months) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 260 Medium
Return value of de.powerstat.validation.values.MonthDay.decrementMonth() ignored, is this OK in de.powerstat.validation.values.test.MonthDayTests.lambda$testDecrement2$35(MonthDay) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 351 Medium
Return value of de.powerstat.validation.values.MonthDay.incrementMonth() ignored, is this OK in de.powerstat.validation.values.test.MonthDayTests.lambda$testIncrement2$32(MonthDay) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 321 Medium
Return value of de.powerstat.validation.values.MonthDay.subtract(Months) ignored, is this OK in de.powerstat.validation.values.test.MonthDayTests.lambda$testSubtract2$29(MonthDay, Months) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 291 Medium

de.powerstat.validation.values.test.MonthTests

Bug Category Details Line Priority
Return value of de.powerstat.validation.values.Month.add(Months) ignored, is this OK in de.powerstat.validation.values.test.MonthTests.lambda$testAdd2$16(Month, Months) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 215 Medium
Return value of de.powerstat.validation.values.Month.decrement() ignored, is this OK in de.powerstat.validation.values.test.MonthTests.lambda$testDecrement2$19(Month) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 298 Medium
Return value of de.powerstat.validation.values.Month.increment() ignored, is this OK in de.powerstat.validation.values.test.MonthTests.lambda$testIncrement2$18(Month) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 271 Medium
Return value of de.powerstat.validation.values.Month.subtract(Months) ignored, is this OK in de.powerstat.validation.values.test.MonthTests.lambda$testSubtract2$17(Month, Months) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 244 Medium

de.powerstat.validation.values.test.SecondTests

Bug Category Details Line Priority
Return value of de.powerstat.validation.values.Second.add(Seconds) ignored, is this OK in de.powerstat.validation.values.test.SecondTests.lambda$testAdd2$16(Second, Seconds) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 210 Medium
Return value of de.powerstat.validation.values.Second.decrement() ignored, is this OK in de.powerstat.validation.values.test.SecondTests.lambda$testDecrement2$19(Second) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 293 Medium
Return value of de.powerstat.validation.values.Second.increment() ignored, is this OK in de.powerstat.validation.values.test.SecondTests.lambda$testIncrement2$18(Second) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 266 Medium
Return value of de.powerstat.validation.values.Second.subtract(Seconds) ignored, is this OK in de.powerstat.validation.values.test.SecondTests.lambda$testSubtract2$17(Second, Seconds) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 239 Medium

de.powerstat.validation.values.test.UUIDTests

Bug Category Details Line Priority
Call to equals(null) in de.powerstat.validation.values.test.UUIDTests.lambda$testEquals$9(UUID) CORRECTNESS EC_NULL_ARG 87 Medium
de.powerstat.validation.values.test.UUIDTests.lambda$testCompareTo$10(UUID, UUID) negates the return value of de.powerstat.validation.values.UUID.compareTo(UUID) BAD_PRACTICE RV_NEGATING_RESULT_OF_COMPARETO 116 Medium
de.powerstat.validation.values.test.UUIDTests.lambda$testCompareTo$11(UUID, UUID) negates the return value of de.powerstat.validation.values.UUID.compareTo(UUID) BAD_PRACTICE RV_NEGATING_RESULT_OF_COMPARETO 117 Medium
Method de.powerstat.validation.values.test.UUIDTests.lambda$testCompareTo$10(UUID, UUID) compares the result of a compareTo method to a value other than zero CORRECTNESS SPP_USE_ZERO_WITH_COMPARATOR 116 Medium
Method de.powerstat.validation.values.test.UUIDTests.lambda$testCompareTo$11(UUID, UUID) compares the result of a compareTo method to a value other than zero CORRECTNESS SPP_USE_ZERO_WITH_COMPARATOR 117 Medium

de.powerstat.validation.values.test.WeekTests

Bug Category Details Line Priority
Return value of de.powerstat.validation.values.Week.add(Weeks) ignored, is this OK in de.powerstat.validation.values.test.WeekTests.lambda$testAdd2$16(Week, Weeks) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 210 Medium
Return value of de.powerstat.validation.values.Week.decrement() ignored, is this OK in de.powerstat.validation.values.test.WeekTests.lambda$testDecrement2$19(Week) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 293 Medium
Return value of de.powerstat.validation.values.Week.increment() ignored, is this OK in de.powerstat.validation.values.test.WeekTests.lambda$testIncrement2$18(Week) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 266 Medium
Return value of de.powerstat.validation.values.Week.subtract(Weeks) ignored, is this OK in de.powerstat.validation.values.test.WeekTests.lambda$testSubtract2$17(Week, Weeks) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 239 Medium

de.powerstat.validation.values.test.YearTests

Bug Category Details Line Priority
Return value of de.powerstat.validation.values.Year.add(Years) ignored, is this OK in de.powerstat.validation.values.test.YearTests.lambda$testAdd3$17(Year, Years) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 249 Medium
Return value of de.powerstat.validation.values.Year.decrement() ignored, is this OK in de.powerstat.validation.values.test.YearTests.lambda$testDecrement3$20(Year) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 395 Medium
Return value of de.powerstat.validation.values.Year.increment() ignored, is this OK in de.powerstat.validation.values.test.YearTests.lambda$testIncrement3$19(Year) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 356 Medium
Return value of de.powerstat.validation.values.Year.subtract(Years) ignored, is this OK in de.powerstat.validation.values.test.YearTests.lambda$testSubtract3$18(Year, Years) STYLE RV_RETURN_VALUE_IGNORED_INFERRED 304 Medium
Method de.powerstat.validation.values.test.YearTests.testMonthWithin() calls static method on instance reference STYLE SMII_STATIC_METHOD_INSTANCE_INVOCATION 408 Medium