Catalog and Archive Service Generic Multi-valued Metadata Container

FindBugs Bug Detector Report

Summary

Files

The following document contains the results of FindBugs Report

FindBugs Version is 1.3.9

Threshold is

Effort is min

Summary

ClassesBugsErrorsMissing Classes
462900

org.apache.oodt.cas.metadata.Metadata

BugCategoryDetailsLinePriority
org.apache.oodt.cas.metadata.Metadata defines equals and uses Object.hashCode()BAD_PRACTICEHE_EQUALS_USE_HASHCODE563-575High
Method org.apache.oodt.cas.metadata.Metadata.addMetadata(Hashtable, boolean) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR388Medium

org.apache.oodt.cas.metadata.Metadata$Group

BugCategoryDetailsLinePriority
org.apache.oodt.cas.metadata.Metadata$Group defines clone() but doesn't implement CloneableBAD_PRACTICECN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE450High

org.apache.oodt.cas.metadata.SerializableMetadata

BugCategoryDetailsLinePriority
org.apache.oodt.cas.metadata.SerializableMetadata doesn't override Metadata.equals(Object)STYLEEQ_DOESNT_OVERRIDE_EQUALS61-261Medium
Load of known null value in org.apache.oodt.cas.metadata.SerializableMetadata.toXML()STYLENP_LOAD_OF_KNOWN_NULL_VALUE193Medium

org.apache.oodt.cas.metadata.extractors.CmdLineMetExtractor

BugCategoryDetailsLinePriority
Null pointer dereference of System.err in org.apache.oodt.cas.metadata.extractors.CmdLineMetExtractor.processMain(String[], CmdLineMetExtractor)CORRECTNESSNP_ALWAYS_NULL61High
Null pointer dereference of System.err in org.apache.oodt.cas.metadata.extractors.CmdLineMetExtractor.processMain(String[], CmdLineMetExtractor, OutputStream)CORRECTNESSNP_ALWAYS_NULL81High

org.apache.oodt.cas.metadata.extractors.DataSourceMetExtractor

BugCategoryDetailsLinePriority

org.apache.oodt.cas.metadata.extractors.ExternMetExtractor

BugCategoryDetailsLinePriority

org.apache.oodt.cas.metadata.extractors.ExternalMetExtractorConfig

BugCategoryDetailsLinePriority
org.apache.oodt.cas.metadata.extractors.ExternalMetExtractorConfig.getArgList() may expose internal representation by returning ExternalMetExtractorConfig.argListMALICIOUS_CODEEI_EXPOSE_REP60Medium
new org.apache.oodt.cas.metadata.extractors.ExternalMetExtractorConfig(String, String, String[]) may expose internal representation by storing an externally mutable object into ExternalMetExtractorConfig.argListMALICIOUS_CODEEI_EXPOSE_REP252Medium
org.apache.oodt.cas.metadata.extractors.ExternalMetExtractorConfig.setArgList(String[]) may expose internal representation by storing an externally mutable object into ExternalMetExtractorConfig.argListMALICIOUS_CODEEI_EXPOSE_REP268Medium

org.apache.oodt.cas.metadata.extractors.FilenameTokenConfig

BugCategoryDetailsLinePriority

org.apache.oodt.cas.metadata.extractors.FilenameTokenConfigReader

BugCategoryDetailsLinePriority

org.apache.oodt.cas.metadata.extractors.MetReaderConfigReader

BugCategoryDetailsLinePriority

org.apache.oodt.cas.metadata.extractors.MetReaderExtractor

BugCategoryDetailsLinePriority
org.apache.oodt.cas.metadata.extractors.MetReaderExtractor.reader isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL50High

org.apache.oodt.cas.metadata.extractors.TikaCmdLineMetExtractor

BugCategoryDetailsLinePriority
org.apache.oodt.cas.metadata.extractors.TikaCmdLineMetExtractor.reader isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL54High
Exception is caught when Exception is not thrown in org.apache.oodt.cas.metadata.extractors.TikaCmdLineMetExtractor.extrMetadata(File)STYLEREC_CATCH_EXCEPTION109Medium

org.apache.oodt.cas.metadata.preconditions.ExistanceCheckComparator

BugCategoryDetailsLinePriority
org.apache.oodt.cas.metadata.preconditions.ExistanceCheckComparator.performCheck(File, Boolean) invokes inefficient Boolean constructor; use Boolean.valueOf(...) insteadPERFORMANCEDM_BOOLEAN_CTOR43Medium

org.apache.oodt.cas.metadata.preconditions.FileSizeComparator

BugCategoryDetailsLinePriority
Method org.apache.oodt.cas.metadata.preconditions.FileSizeComparator.performCheck(File, Long) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTOR42Medium

org.apache.oodt.cas.metadata.preconditions.MimeTypeComparator

BugCategoryDetailsLinePriority
Possible null pointer dereference of tikaMimeType in org.apache.oodt.cas.metadata.preconditions.MimeTypeComparator.performCheck(File, String)CORRECTNESSNP_NULL_ON_SOME_PATH59High

org.apache.oodt.cas.metadata.preconditions.PreCondEvalUtils

BugCategoryDetailsLinePriority
Write to static field org.apache.oodt.cas.metadata.preconditions.PreCondEvalUtils.applicationContext from instance method new org.apache.oodt.cas.metadata.preconditions.PreCondEvalUtils(ApplicationContext)STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD51High

org.apache.oodt.cas.metadata.preconditions.PreConditionComparator

BugCategoryDetailsLinePriority
Exception is caught when Exception is not thrown in org.apache.oodt.cas.metadata.preconditions.PreConditionComparator.passes(File)STYLEREC_CATCH_EXCEPTION71Medium

org.apache.oodt.cas.metadata.preconditions.SubProductExistenceCheckComparator

BugCategoryDetailsLinePriority
org.apache.oodt.cas.metadata.preconditions.SubProductExistenceCheckComparator.performCheck(File, Boolean) invokes inefficient Boolean constructor; use Boolean.valueOf(...) insteadPERFORMANCEDM_BOOLEAN_CTOR61Medium

org.apache.oodt.cas.metadata.util.MimeTypeUtils

BugCategoryDetailsLinePriority
Possible null pointer dereference of type in org.apache.oodt.cas.metadata.util.MimeTypeUtils.autoResolveContentType(String, String, byte[]) on exception pathCORRECTNESSNP_NULL_ON_SOME_PATH_EXCEPTION210Medium

org.apache.oodt.cas.metadata.util.PathUtils

BugCategoryDetailsLinePriority
org.apache.oodt.cas.metadata.util.PathUtils.DELIMITER isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL52High

org.apache.oodt.cas.metadata.util.PathUtils$VarData

BugCategoryDetailsLinePriority
Should org.apache.oodt.cas.metadata.util.PathUtils$VarData be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATIC360-395Medium