The following document contains the results of FindBugs Report
FindBugs Version is 2.0.0
Threshold is medium
Effort is min
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Exception is caught when Exception is not thrown in net.sf.adatagenerator.core.AbstractGroupCreator.mutate(Object, GeneratorMap, List, Logger) | STYLE | REC_CATCH_EXCEPTION | 125 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new net.sf.adatagenerator.core.AbstractTee(CMSink[]) may expose internal representation by storing an externally mutable object into AbstractTee.sinks | MALICIOUS_CODE | EI_EXPOSE_REP2 | 34 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of o2 in net.sf.adatagenerator.core.CompositeSource$1.compare(CompositeSource$FrequencyWeightedSource, CompositeSource$FrequencyWeightedSource) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 187 | Medium |
Null passed for nonnull parameter of Float.compareTo(Float) in net.sf.adatagenerator.core.CompositeSource$1.compare(CompositeSource$FrequencyWeightedSource, CompositeSource$FrequencyWeightedSource) | CORRECTNESS | NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS | 181 | Medium |
Null passed for nonnull parameter of Float.compareTo(Float) in net.sf.adatagenerator.core.CompositeSource$1.compare(CompositeSource$FrequencyWeightedSource, CompositeSource$FrequencyWeightedSource) | CORRECTNESS | NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS | 184 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Exception is caught when Exception is not thrown in net.sf.adatagenerator.core.DefaultBeanCreator.newBean(Class, Object, GeneratorMap) | STYLE | REC_CATCH_EXCEPTION | 218 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
net.sf.adatagenerator.core.DefaultGroup defines compareTo(Object) and uses Object.equals() | BAD_PRACTICE | EQ_COMPARETO_USE_OBJECT_EQUALS | 18 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Load of known null value in net.sf.adatagenerator.core.DefaultGroupSource.pairInvariant(CMPair) | STYLE | NP_LOAD_OF_KNOWN_NULL_VALUE | 518 | Medium |
Load of known null value in net.sf.adatagenerator.core.DefaultGroupSource.sourceInvariant() | STYLE | NP_LOAD_OF_KNOWN_NULL_VALUE | 466 | Medium |
Redundant nullcheck of errorMessage which is known to be null in net.sf.adatagenerator.core.DefaultGroupSource.pairInvariant(CMPair) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE | 518 | Medium |
Redundant nullcheck of errorMessage which is known to be null in net.sf.adatagenerator.core.DefaultGroupSource.sourceInvariant() | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE | 390 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
net.sf.adatagenerator.core.DefaultNamedInstance defines compareTo(Object) and uses Object.equals() | BAD_PRACTICE | EQ_COMPARETO_USE_OBJECT_EQUALS | 16 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of o1 on branch that might be infeasible in net.sf.adatagenerator.core.DefaultNamedInstance$DefaultNamedInstanceComparator.compare(NamedInstance, NamedInstance) | STYLE | NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE | 76 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of o1 on branch that might be infeasible in net.sf.adatagenerator.core.DefaultNamedInstance$DefaultStringComparator.compare(String, String) | STYLE | NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE | 39 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
There is an apparent infinite recursive loop in net.sf.adatagenerator.core.GeneratedBeanProperties.getProperty(String) | CORRECTNESS | IL_INFINITE_RECURSIVE_LOOP | 80 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
net.sf.adatagenerator.modifiers.BeanFieldModifier defines compareTo(Object) and uses Object.equals() | BAD_PRACTICE | EQ_COMPARETO_USE_OBJECT_EQUALS | 28 | Medium |
net.sf.adatagenerator.modifiers.BeanFieldModifier.logger isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 30 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
net.sf.adatagenerator.modifiers.CompositeBeanFieldModifier defines compareTo(Object) and uses Object.equals() | BAD_PRACTICE | EQ_COMPARETO_USE_OBJECT_EQUALS | 19 | Medium |
net.sf.adatagenerator.modifiers.CompositeBeanFieldModifier.logger isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 21 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
net.sf.adatagenerator.modifiers.CompositePairModifier defines compareTo(Object) and uses Object.equals() | BAD_PRACTICE | EQ_COMPARETO_USE_OBJECT_EQUALS | 14 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
net.sf.adatagenerator.modifiers.DefaultPairModifier defines compareTo(Object) and uses Object.equals() | BAD_PRACTICE | EQ_COMPARETO_USE_OBJECT_EQUALS | 14 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Random object created and used only once in net.sf.adatagenerator.modifiers.ModifierUtilities.errorPosition(String, int) | BAD_PRACTICE | DMI_RANDOM_USED_ONLY_ONCE | 43 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
net.sf.adatagenerator.modifiers.RandomBeanFieldModifier defines compareTo(Object) and uses Object.equals() | BAD_PRACTICE | EQ_COMPARETO_USE_OBJECT_EQUALS | 15 | Medium |
net.sf.adatagenerator.modifiers.RandomBeanFieldModifier.logger isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 17 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
net.sf.adatagenerator.modifiers.RandomPairModifier defines compareTo(Object) and uses Object.equals() | BAD_PRACTICE | EQ_COMPARETO_USE_OBJECT_EQUALS | 15 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Random object created and used only once in net.sf.adatagenerator.mutators.Utilities.errorPosition(String, int) | BAD_PRACTICE | DMI_RANDOM_USED_ONLY_ONCE | 47 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
net.sf.adatagenerator.pred.PredicateCorrelation.COMPRESSED_RADIX isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 21 | High |
net.sf.adatagenerator.pred.PredicateCorrelation.DECOMPRESSED_RADIX isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 20 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
net.sf.adatagenerator.pred.ReflectionPredicate.logger isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 24 | High |
Exception is caught when Exception is not thrown in net.sf.adatagenerator.pred.ReflectionPredicate.isRecordValidForEvaluation(Object) | STYLE | REC_CATCH_EXCEPTION | 85 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of o1 on branch that might be infeasible in net.sf.adatagenerator.util.DefaultNullComparator.compareComparables(Object, Object) | STYLE | NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE | 62 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
net.sf.adatagenerator.util.FrequencyBasedList.computeFrequencyMap(Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 328 | Medium |
net.sf.adatagenerator.util.FrequencyBasedList.computeLeastFrequentValues(Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 185 | Medium |
net.sf.adatagenerator.util.FrequencyBasedList.computeMostFrequentValues(Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 203 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
net.sf.adatagenerator.util.IntegerFrequencyFile.createFrequencyBasedList() makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 84 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in net.sf.adatagenerator.util.ResourceUtil.getBufferedReader(ClassLoader, String): new java.io.InputStreamReader(InputStream) | I18N | DM_DEFAULT_ENCODING | 38 | High |