SpotBugs Bug Detector Report
The following document contains the results of SpotBugs
SpotBugs Version is 4.7.3
Threshold is low
Effort is max
Summary
Classes |
Bugs |
Errors |
Missing Classes |
173 |
14 |
0 |
0 |
dev.aherscu.qa.testing.utils.ClassUtilsExtensions
Bug |
Category |
Details |
Line |
Priority |
dev.aherscu.qa.testing.utils.ClassUtilsExtensions.getRelativeResourceAsStream(Class, String) may fail to clean up java.io.InputStream on checked exception |
EXPERIMENTAL |
OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE |
45 |
Medium |
dev.aherscu.qa.testing.utils.OptionalMatchers$11
Bug |
Category |
Details |
Line |
Priority |
Test for floating point equality in dev.aherscu.qa.testing.utils.OptionalMatchers$11.matchesSafely(OptionalDouble) |
STYLE |
FE_FLOATING_POINT_EQUALITY |
358 |
Low |
dev.aherscu.qa.testing.utils.StreamMatchers$1
Bug |
Category |
Details |
Line |
Priority |
StreamMatchers$1.actualIterator not initialized in constructor and dereferenced in dev.aherscu.qa.testing.utils.StreamMatchers$1.describeMismatchSafely(BaseStream, Description) |
STYLE |
UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR |
48 |
Low |
dev.aherscu.qa.testing.utils.StreamMatchers$ArrayIterator
Bug |
Category |
Details |
Line |
Priority |
dev.aherscu.qa.testing.utils.StreamMatchers$ArrayIterator.next() cannot throw NoSuchElementException |
BAD_PRACTICE |
IT_NO_SUCH_ELEMENT |
1155 |
Medium |
dev.aherscu.qa.testing.utils.assertions.JsonAssert
Bug |
Category |
Details |
Line |
Priority |
Found reliance on default encoding in dev.aherscu.qa.testing.utils.assertions.JsonAssert.with(InputStream): new java.io.InputStreamReader(InputStream) |
I18N |
DM_DEFAULT_ENCODING |
60 |
High |
dev.aherscu.qa.testing.utils.assertions.WithJsonPath
Bug |
Category |
Details |
Line |
Priority |
new dev.aherscu.qa.testing.utils.assertions.WithJsonPath(JsonPath, Matcher) may expose internal representation by storing an externally mutable object into WithJsonPath.jsonPath |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
17 |
Medium |
dev.aherscu.qa.testing.utils.assertions.WithoutJsonPath
Bug |
Category |
Details |
Line |
Priority |
new dev.aherscu.qa.testing.utils.assertions.WithoutJsonPath(JsonPath) may expose internal representation by storing an externally mutable object into WithoutJsonPath.jsonPath |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
14 |
Medium |
dev.aherscu.qa.testing.utils.assertions.impl.JsonAsserterImpl
Bug |
Category |
Details |
Line |
Priority |
Format string should use %n rather than \n in dev.aherscu.qa.testing.utils.assertions.impl.JsonAsserterImpl.assertThat(String, Matcher) |
BAD_PRACTICE |
VA_FORMAT_STRING_USES_NEWLINE |
45 |
Medium |
Format string should use %n rather than \n in dev.aherscu.qa.testing.utils.assertions.impl.JsonAsserterImpl.assertThat(String, Matcher, String) |
BAD_PRACTICE |
VA_FORMAT_STRING_USES_NEWLINE |
60 |
Medium |
dev.aherscu.qa.testing.utils.function.SerializedLambdaResolvable
Bug |
Category |
Details |
Line |
Priority |
Invocation of reflect.Method.setAccessible(boolean), which should be invoked from within a doPrivileged block, in dev.aherscu.qa.testing.utils.function.SerializedLambdaResolvable.asSerializedLambda() |
MALICIOUS_CODE |
DP_DO_INSIDE_DO_PRIVILEGED |
13 |
Low |
dev.aherscu.qa.testing.utils.rest.OAuthRequestFilter
Bug |
Category |
Details |
Line |
Priority |
dev.aherscu.qa.testing.utils.rest.OAuthRequestFilter.customTokenBlockCache(Cache) may expose internal representation by storing an externally mutable object into OAuthRequestFilter.customTokenBlockCache |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
65 |
Medium |
Unread public/protected field: dev.aherscu.qa.testing.utils.rest.OAuthRequestFilter.refreshTokenUri |
STYLE |
URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD |
56 |
Low |
dev.aherscu.qa.testing.utils.rest.OAuthRequestFilter$OAuthRequestFilterBuilder
Bug |
Category |
Details |
Line |
Priority |
dev.aherscu.qa.testing.utils.rest.OAuthRequestFilter$OAuthRequestFilterBuilder.customTokenBlockCache(Cache) may expose internal representation by storing an externally mutable object into OAuthRequestFilter$OAuthRequestFilterBuilder.customTokenBlockCache |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
56 |
Medium |
dev.aherscu.qa.testing.utils.rest.OAuthRequestFilter$TokenBlock
Bug |
Category |
Details |
Line |
Priority |
Unread public/protected field: dev.aherscu.qa.testing.utils.rest.OAuthRequestFilter$TokenBlock.expiresInSeconds |
STYLE |
URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD |
104 |
Low |