FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 2.0.1

Threshold is medium

Effort is min

Summary

ClassesBugsErrorsMissing Classes
542200

org.deegree.services.csw.AbstractCSWRequest

BugCategoryDetailsLinePriority
org.deegree.services.csw.AbstractCSWRequest.getTypeNames() may expose internal representation by returning AbstractCSWRequest.typeNamesMALICIOUS_CODEEI_EXPOSE_REP94Medium
new org.deegree.services.csw.AbstractCSWRequest(Version, NamespaceBindings, QName[], String) may expose internal representation by storing an externally mutable object into AbstractCSWRequest.typeNamesMALICIOUS_CODEEI_EXPOSE_REP272Medium

org.deegree.services.csw.describerecord.DescribeRecordKVPAdapter

BugCategoryDetailsLinePriority
org.deegree.services.csw.describerecord.DescribeRecordKVPAdapter.parse202(Version, Map) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR93Medium

org.deegree.services.csw.exporthandling.DescribeRecordHandler

BugCategoryDetailsLinePriority
Exception is caught when Exception is not thrown in org.deegree.services.csw.exporthandling.DescribeRecordHandler.writeSchema(XMLStreamWriter, QName, URL)STYLEREC_CATCH_EXCEPTION203Medium

org.deegree.services.csw.exporthandling.GetCapabilitiesHandler

BugCategoryDetailsLinePriority
org.deegree.services.csw.exporthandling.GetCapabilitiesHandler.exportOperationsMetadata(XMLStreamWriter, String, String, String) may fail to clean up java.io.InputStream on checked exceptionEXPERIMENTALOBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE353Medium

org.deegree.services.csw.exporthandling.GetCapabilitiesHelper

BugCategoryDetailsLinePriority
Comparison of String objects using == or != in org.deegree.services.csw.exporthandling.GetCapabilitiesHelper.writeTemplateElement(XMLStreamWriter, XMLStreamReader, Map) BAD_PRACTICEES_COMPARING_STRINGS_WITH_EQ386Medium
Comparison of String objects using == or != in org.deegree.services.csw.exporthandling.GetCapabilitiesHelper.writeTemplateElement(XMLStreamWriter, XMLStreamReader, Map) BAD_PRACTICEES_COMPARING_STRINGS_WITH_EQ382Medium
Comparison of String objects using == or != in org.deegree.services.csw.exporthandling.GetCapabilitiesHelper.writeTemplateElement(XMLStreamWriter, XMLStreamReader, Map) BAD_PRACTICEES_COMPARING_STRINGS_WITH_EQ382Medium
org.deegree.services.csw.exporthandling.GetCapabilitiesHelper.writeTemplateElement(XMLStreamWriter, XMLStreamReader, Map) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR369Medium

org.deegree.services.csw.exporthandling.GetRecordsHandler

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.deegree.services.csw.exporthandling.GetRecordsHandler.validate(OMElement): String.getBytes()I18NDM_DEFAULT_ENCODING452High
org.deegree.services.csw.exporthandling.GetRecordsHandler.export202(XMLStreamWriter, GetRecords, MetadataStore) concatenates strings using + in a loopPERFORMANCESBSC_USE_STRINGBUFFER_CONCATENATION217Medium

org.deegree.services.csw.getrecords.GetRecordsKVPAdapter

BugCategoryDetailsLinePriority
Possible null pointer dereference of constraintLanguageString on branch that might be infeasible in org.deegree.services.csw.getrecords.GetRecordsKVPAdapter.parse202(Version, Map, String, String)STYLENP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE232Medium
org.deegree.services.csw.getrecords.GetRecordsKVPAdapter.parse202(Version, Map, String, String) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR128Medium

org.deegree.services.csw.getrecords.Query

BugCategoryDetailsLinePriority
org.deegree.services.csw.getrecords.Query.getElementName() may expose internal representation by returning Query.elementNameMALICIOUS_CODEEI_EXPOSE_REP137Medium
org.deegree.services.csw.getrecords.Query.getQueryTypeNames() may expose internal representation by returning Query.queryTypeNamesMALICIOUS_CODEEI_EXPOSE_REP121Medium
org.deegree.services.csw.getrecords.Query.getReturnTypeNames() may expose internal representation by returning Query.returnTypeNamesMALICIOUS_CODEEI_EXPOSE_REP127Medium
org.deegree.services.csw.getrecords.Query.getSortProps() may expose internal representation by returning Query.sortPropsMALICIOUS_CODEEI_EXPOSE_REP151Medium
new org.deegree.services.csw.getrecords.Query(CSWConstants$ReturnableElement, String[], Filter, CSWConstants$ConstraintLanguage, SortProperty[], QName[], QName[]) may expose internal representation by storing an externally mutable object into Query.elementNameMALICIOUS_CODEEI_EXPOSE_REP2110Medium
new org.deegree.services.csw.getrecords.Query(CSWConstants$ReturnableElement, String[], Filter, CSWConstants$ConstraintLanguage, SortProperty[], QName[], QName[]) may expose internal representation by storing an externally mutable object into Query.queryTypeNamesMALICIOUS_CODEEI_EXPOSE_REP2114Medium
new org.deegree.services.csw.getrecords.Query(CSWConstants$ReturnableElement, String[], Filter, CSWConstants$ConstraintLanguage, SortProperty[], QName[], QName[]) may expose internal representation by storing an externally mutable object into Query.returnTypeNamesMALICIOUS_CODEEI_EXPOSE_REP2115Medium
new org.deegree.services.csw.getrecords.Query(CSWConstants$ReturnableElement, String[], Filter, CSWConstants$ConstraintLanguage, SortProperty[], QName[], QName[]) may expose internal representation by storing an externally mutable object into Query.sortPropsMALICIOUS_CODEEI_EXPOSE_REP2113Medium

org.deegree.services.csw.transaction.TransactionXMLAdapter

BugCategoryDetailsLinePriority
Possible null pointer dereference of type in org.deegree.services.csw.transaction.TransactionXMLAdapter.parse202()CORRECTNESSNP_NULL_ON_SOME_PATH141Medium