The following document contains the results of FindBugs
FindBugs Version is 3.0.1
Threshold is low
Effort is max
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Write to static field auxtestlib.AbstractTestHelper.helperCount from instance method new auxtestlib.AbstractTestHelper() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 65 | Medium |
| Write to static field auxtestlib.AbstractTestHelper.helperCount from instance method auxtestlib.AbstractTestHelper.tearDown() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 104 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Result of integer multiplication cast to long in new auxtestlib.CommandRunner$ProcessInterface(Process, int) | STYLE | ICAST_INTEGER_MULTIPLY_CAST_TO_LONG | 326 | Low |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| The class auxtestlib.CommandRunner$ProcessInterface$3 could be refactored into a named _static_ inner class | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC_ANON | 319-323 | Low |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Invocation of reflect.Field.setAccessible(boolean), which should be invoked from within a doPrivileged block, in auxtestlib.DefaultTCase.internal_get(Object, Class, String) | MALICIOUS_CODE | DP_DO_INSIDE_DO_PRIVILEGED | 241 | Low |
| Invocation of reflect.Field.setAccessible(boolean), which should be invoked from within a doPrivileged block, in auxtestlib.DefaultTCase.internal_set(Object, String, Object) | MALICIOUS_CODE | DP_DO_INSIDE_DO_PRIVILEGED | 277 | Low |
| Invocation of reflect.Field.setAccessible(boolean), which should be invoked from within a doPrivileged block, in auxtestlib.DefaultTCase.pre_set_up() | MALICIOUS_CODE | DP_DO_INSIDE_DO_PRIVILEGED | 90 | Low |
| Redundant nullcheck of f, which is known to be non-null in auxtestlib.DefaultTCase.internal_get(Object, Class, String) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 236 | Medium |
| Redundant nullcheck of f, which is known to be non-null in auxtestlib.DefaultTCase.internal_set(Object, String, Object) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 272 | Medium |
| Return value of Enum.toString() ignored, but method has no side effect | STYLE | RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT | 156 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| The class auxtestlib.DefaultTCase$1 could be refactored into a named _static_ inner class | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC_ANON | 81-84 | Low |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Found reliance on default encoding in auxtestlib.FileContentWorker.read_contents(File): new java.io.FileReader(File) | I18N | DM_DEFAULT_ENCODING | 38 | High |
| Found reliance on default encoding in auxtestlib.FileContentWorker.read_resource(Class, String): new java.io.InputStreamReader(InputStream) | I18N | DM_DEFAULT_ENCODING | 167 | High |
| Found reliance on default encoding in auxtestlib.FileContentWorker.read_resource(String): new java.io.InputStreamReader(InputStream) | I18N | DM_DEFAULT_ENCODING | 132 | High |
| Found reliance on default encoding in auxtestlib.FileContentWorker.set_contents(File, String): new java.io.FileWriter(File) | I18N | DM_DEFAULT_ENCODING | 86 | High |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Possible null pointer dereference in auxtestlib.JarUtils.makeFullJar(File, File) due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 113 | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Redundant nullcheck of co, which is known to be non-null in auxtestlib.JavacRunner.javac(File, String[], Object[]) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 150 | Medium |
| Redundant nullcheck of co, which is known to be non-null in auxtestlib.JavacRunner.javac(File, String[], Object[]) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 134 | Low |
| Repeated conditional test in auxtestlib.JavacRunner.javacResources(File, String[], String[], Object[]) | CORRECTNESS | RpC_REPEATED_CONDITIONAL_TEST | 219 | Low |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Call to swing method in auxtestlib.PictureBuilder.main(String[]) needs to be performed in Swing event thread | BAD_PRACTICE | SW_SWING_METHODS_INVOKED_IN_SWING_THREAD | 201 | Low |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Class auxtestlib.PictureBuilder$1 defines non-transient non-serializable instance field val$img | BAD_PRACTICE | SE_BAD_FIELD | Not available | Low |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Possible null pointer dereference in auxtestlib.TemporaryFile.doDeleteDir(File) due to return value of called method | STYLE | NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE | 151 | Medium |
| Repeated conditional test in auxtestlib.TemporaryFile.do_delete(File) | CORRECTNESS | RpC_REPEATED_CONDITIONAL_TEST | 138 | Low |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Write to static field auxtestlib.ThreadCountTestHelper.knownThreads from instance method auxtestlib.ThreadCountTestHelper.myPrepareFixture() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 73 | Medium |
| Write to static field auxtestlib.ThreadCountTestHelper.knownThreads from instance method auxtestlib.ThreadCountTestHelper.myCleanUp() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 47 | Low |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Found reliance on default encoding in auxtestlib.WebGetter.get(String): new java.io.InputStreamReader(InputStream) | I18N | DM_DEFAULT_ENCODING | 81 | High |