The following document contains the results of FindBugs Report
FindBugs Version is 1.2.0
Threshold is Low
Effort is Default
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
322 | 26 | 0 | 0 |
Bug | Category | Details | Line |
---|---|---|---|
Method net.sf.jour.Config.getAllInstrumentors() uses Collection.toArray() with zero-length array argument | PERFORMANCE | ITA_INEFFICIENT_TO_ARRAY | 236 |
Method net.sf.jour.Config.getInstrumentors(String) uses Collection.toArray() with zero-length array argument | PERFORMANCE | ITA_INEFFICIENT_TO_ARRAY | 226 |
Bug | Category | Details | Line |
---|---|---|---|
net.sf.jour.Interceptor.Interceptor(Config, ClassPool, String, Instrumentor[]) may expose internal representation by storing an externally mutable object into Interceptor.instrumentors | MALICIOUS_CODE | EI_EXPOSE_REP2 | 69 |
Exception is caught when Exception is not thrown in net.sf.jour.Interceptor.instrument() | STYLE | REC_CATCH_EXCEPTION | 116 |
Bug | Category | Details | Line |
---|---|---|---|
Method net.sf.jour.filter.MatchListFilter.matchListAny(Object, List) uses the same code for two switch clauses | STYLE | DB_DUPLICATE_SWITCH_CLAUSES | 133-134 |
Bug | Category | Details | Line |
---|---|---|---|
AbstractInstrumentor.createdClasses not initialized in constructor | STYLE | UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Exception is caught when Exception is not thrown in net.sf.jour.instrumentor.ExceptionCatcherInstrumentor.instrumentMethod(CtClass, CtMethod) | STYLE | REC_CATCH_EXCEPTION | 82 |
Bug | Category | Details | Line |
---|---|---|---|
Exception is caught when Exception is not thrown in net.sf.jour.instrumentor.MethodExecutionTimeInstrumentor.addTiming(CtClass, CtMethod) | STYLE | REC_CATCH_EXCEPTION | 90 |
Bug | Category | Details | Line |
---|---|---|---|
net.sf.jour.processor.DirectoryOutputWriter.write(Entry) may fail to close stream on exception | BAD_PRACTICE | OS_OPEN_STREAM_EXCEPTION_PATH | 40 |
Bug | Category | Details | Line |
---|---|---|---|
net.sf.jour.processor.FileEntry defines equals and uses Object.hashCode() | BAD_PRACTICE | HE_EQUALS_USE_HASHCODE | 48-51 |
Bug | Category | Details | Line |
---|---|---|---|
Method net.sf.jour.signature.APICompare.compareFields(CtField[], CtField[], String, CtClass, CtClass) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 487 |
Method net.sf.jour.signature.APICompare.compareMethods(CtMethod[], CtMethod[], String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 433 |
Bug | Category | Details | Line |
---|---|---|---|
net.sf.jour.signature.APICompareChangeHelper.assertEquals(String, boolean, boolean) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | 76 |
Bug | Category | Details | Line |
---|---|---|---|
ExportXML.document not initialized in constructor | STYLE | UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR | Not available |
ExportXML.filter not initialized in constructor | STYLE | UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR | Not available |
Bug | Category | Details | Line |
---|---|---|---|
net.sf.jour.signature.Generator$ClassSortComparator implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | Not available |
Bug | Category | Details | Line |
---|---|---|---|
SignatureImport.filter not initialized in constructor | STYLE | UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Dead store to name in net.sf.jour.util.CmdArgs.isArgsName(String) | STYLE | DLS_DEAD_LOCAL_STORE | 23 |
Bug | Category | Details | Line |
---|---|---|---|
Should net.sf.jour.util.ConfigFileUtil.getChildNodes(Node, String) return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 126 |
Bug | Category | Details | Line |
---|---|---|---|
net.sf.jour.util.FileUtil.readTextFile(File, HashSet) may fail to close stream | BAD_PRACTICE | OS_OPEN_STREAM | 151 |
Exception is caught when Exception is not thrown in net.sf.jour.util.FileUtil.readTextFile(File, HashSet) | STYLE | REC_CATCH_EXCEPTION | 174 |
Bug | Category | Details | Line |
---|---|---|---|
net.sf.jour.util.FileUtil$FileListByDateComparator implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | Not available |
Bug | Category | Details | Line |
---|---|---|---|
net.sf.jour.util.FileUtil$FileListByNameComparator implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Method net.sf.jour.util.RegExUtil.match(String, String) uses Collection.toArray() with zero-length array argument | PERFORMANCE | ITA_INEFFICIENT_TO_ARRAY | 46 |
Bug | Category | Details | Line |
---|---|---|---|
Should net.sf.jour.util.TimeUtil.string2TimeInterval(String) return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 232 |
Exception is caught when Exception is not thrown in net.sf.jour.util.TimeUtil.detectTimeformat(String) | STYLE | REC_CATCH_EXCEPTION | 210 |