The following document contains the results of FindBugs Report
FindBugs Version is 1.3.9
Threshold is low
Effort is min
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
6 | 16 | 0 | 0 |
Class | Bugs |
---|---|
com.github.smokestack.ejb.MockEJBContainer | 1 |
com.github.smokestack.ejb.internal.ClassFinder | 15 |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
com.github.smokestack.ejb.MockEJBContainer.injectMembers(Class, Object) invokes reflect.Field.setAccessible(boolean), which should be invoked from within a doPrivileged block | BAD_PRACTICE | DP_DO_INSIDE_DO_PRIVILEGED | 97 | Low |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to url in com.github.smokestack.ejb.internal.ClassFinder.getClasspathLocations() | STYLE | DLS_DEAD_LOCAL_STORE | 126 | Low |
com.github.smokestack.ejb.internal.ClassFinder.classpathLocations is or uses a map or set of URLs, which can be a performance hog | PERFORMANCE | DMI_COLLECTION_OF_URLS | Not available | High |
com.github.smokestack.ejb.internal.ClassFinder.findSubclasses(Class, Map) is or uses a map or set of URLs, which can be a performance hog | PERFORMANCE | DMI_COLLECTION_OF_URLS | 259-279 | High |
com.github.smokestack.ejb.internal.ClassFinder.findSubclasses(Class, Map) is or uses a map or set of URLs, which can be a performance hog | PERFORMANCE | DMI_COLLECTION_OF_URLS | 274 | High |
com.github.smokestack.ejb.internal.ClassFinder.getClasspathLocations() is or uses a map or set of URLs, which can be a performance hog | PERFORMANCE | DMI_COLLECTION_OF_URLS | 110-130 | High |
com.github.smokestack.ejb.internal.ClassFinder.include(String, File, Map) is or uses a map or set of URLs, which can be a performance hog | PERFORMANCE | DMI_COLLECTION_OF_URLS | 155-181 | High |
com.github.smokestack.ejb.internal.ClassFinder.includeJar(File, Map) is or uses a map or set of URLs, which can be a performance hog | PERFORMANCE | DMI_COLLECTION_OF_URLS | 184-223 | High |
com.github.smokestack.ejb.internal.ClassFinder.includeResourceLocations(String, Map) is or uses a map or set of URLs, which can be a performance hog | PERFORMANCE | DMI_COLLECTION_OF_URLS | 242-255 | High |
Use of non-localized String.toUpperCase() or String.toLowerCase | I18N | DM_CONVERT_CASE | 211 | Low |
com.github.smokestack.ejb.internal.ClassFinder.getPackagePath(String) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 435 | Medium |
Synchronization on ClassFinder.classpathLocations in futile attempt to guard it | MT_CORRECTNESS | ML_SYNC_ON_FIELD_TO_GUARD_CHANGING_THAT_FIELD | 45 | High |
Exception is caught when Exception is not thrown in com.github.smokestack.ejb.internal.ClassFinder.includeJar(File, Map) | STYLE | REC_CATCH_EXCEPTION | 194 | Medium |
Private method com.github.smokestack.ejb.internal.ClassFinder.includeResourceLocations(String, Map) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 242-255 | Low |
Method com.github.smokestack.ejb.internal.ClassFinder.findSubclasses(Class, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 274 | Medium |