The following document contains the results of FindBugs Report
FindBugs Version is 2.0.1
Threshold is medium
Effort is min
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
instanceof will always return true for all nonnull values in org.deegree.feature.Features.findFeaturesAndGeometries(TypedObjectNode, Set, Set, Set, Set), since all org.deegree.commons.tom.Reference are instances of org.deegree.commons.tom.Reference | STYLE | BC_VACUOUS_INSTANCEOF | 222 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.deegree.feature.property.ExtraProps.getProperties() may expose internal representation by returning ExtraProps.props | MALICIOUS_CODE | EI_EXPOSE_REP | 77 | Medium |
new org.deegree.feature.property.ExtraProps(Property[]) may expose internal representation by storing an externally mutable object into ExtraProps.props | MALICIOUS_CODE | EI_EXPOSE_REP2 | 68 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unread field: org.deegree.feature.stream.CombinedFeatureInputStream.lastClosed | PERFORMANCE | URF_UNREAD_FIELD | 59 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Inconsistent synchronization of org.deegree.feature.stream.ThreadedFeatureInputStream$QueueFiller.sleeping; locked 50% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 224 | Medium |
Naked notify in org.deegree.feature.stream.ThreadedFeatureInputStream$QueueFiller.exit() | MT_CORRECTNESS | NN_NAKED_NOTIFY | 226 | Medium |
Naked notify in org.deegree.feature.stream.ThreadedFeatureInputStream$QueueFiller.hasNext() | MT_CORRECTNESS | NN_NAKED_NOTIFY | 191 | Medium |
Naked notify in org.deegree.feature.stream.ThreadedFeatureInputStream$QueueFiller.run() | MT_CORRECTNESS | NN_NAKED_NOTIFY | 179 | Medium |
Should org.deegree.feature.stream.ThreadedFeatureInputStream$QueueFiller be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 123 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.deegree.feature.types.DynamicFeatureType.toString() concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 195 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.deegree.feature.types.GenericFeatureCollectionType.toString() concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 97 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.deegree.feature.types.property.AbstractPropertyType.getSubstitutions() may expose internal representation by returning AbstractPropertyType.substitutions | MALICIOUS_CODE | EI_EXPOSE_REP | 131 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.deegree.feature.utils.DBUtils.fetchGeometrySchemas(String, DeegreeWorkspace) may fail to clean up java.sql.ResultSet | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 184 | Medium |
org.deegree.feature.utils.DBUtils.fetchGeometryTables(String, String, DeegreeWorkspace) may fail to clean up java.sql.ResultSet | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 227 | Medium |
return value of java.sql.PreparedStatement.executeQuery() ignored in org.deegree.feature.utils.DBUtils.fetchGeometrySchemas(String, DeegreeWorkspace) | CORRECTNESS | RV_RETURN_VALUE_IGNORED | 184 | Medium |
return value of java.sql.PreparedStatement.executeQuery() ignored in org.deegree.feature.utils.DBUtils.fetchGeometryTables(String, String, DeegreeWorkspace) | CORRECTNESS | RV_RETURN_VALUE_IGNORED | 227 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class org.deegree.feature.xpath.GMLObjectNavigator defines non-transient non-serializable instance field documentNode | BAD_PRACTICE | SE_BAD_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Null passed for nonnull parameter of new org.deegree.feature.xpath.node.PropertyNode(GMLObjectNode, Property) in org.deegree.feature.xpath.PropertyNodeIterator.next() | CORRECTNESS | NP_NULL_PARAM_DEREF | 81 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of geometries in org.deegree.filter.Filters.getGeometries(Filter) on exception path | CORRECTNESS | NP_NULL_ON_SOME_PATH_EXCEPTION | 361 | Medium |
Possible null pointer dereference of propNames in org.deegree.filter.Filters.getPropertyNames(Filter) on exception path | CORRECTNESS | NP_NULL_ON_SOME_PATH_EXCEPTION | 302 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Write to static field org.deegree.filter.function.FunctionManager.nameToFunction from instance method org.deegree.filter.function.FunctionManager.shutdown() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 148 | Medium |
Write to static field org.deegree.filter.function.FunctionManager.functionLoader from instance method org.deegree.filter.function.FunctionManager.startup(DeegreeWorkspace) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 124 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Double assignment of field And.params in new org.deegree.filter.logical.And(Operator[]) | STYLE | SA_FIELD_DOUBLE_ASSIGNMENT | 73 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Double assignment of field Or.params in new org.deegree.filter.logical.Or(Operator[]) | STYLE | SA_FIELD_DOUBLE_ASSIGNMENT | 73 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Switch statement found in org.deegree.filter.xml.Filter100XMLDecoder.parseComparisonOperator(XMLStreamReader) where default case is missing | STYLE | SF_SWITCH_NO_DEFAULT | 509 | Medium |
Switch statement found in org.deegree.filter.xml.Filter100XMLDecoder.parseOperator(XMLStreamReader) where default case is missing | STYLE | SF_SWITCH_NO_DEFAULT | 546 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Switch statement found in org.deegree.filter.xml.Filter110XMLDecoder.parseComparisonOperator(XMLStreamReader) where default case is missing | STYLE | SF_SWITCH_NO_DEFAULT | 509 | Medium |
Switch statement found in org.deegree.filter.xml.Filter110XMLDecoder.parseOperator(XMLStreamReader) where default case is missing | STYLE | SF_SWITCH_NO_DEFAULT | 546 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Null passed for nonnull parameter of export(Expression, XMLStreamWriter) in org.deegree.filter.xml.Filter110XMLEncoder.export(SpatialOperator, XMLStreamWriter) | CORRECTNESS | NP_NULL_PARAM_DEREF | 442 | Medium |
Switch statement found in org.deegree.filter.xml.Filter110XMLEncoder.export(Operator, XMLStreamWriter) where default case is missing | STYLE | SF_SWITCH_NO_DEFAULT | 241 | Medium |
Switch statement found in org.deegree.filter.xml.Filter110XMLEncoder.export(ComparisonOperator, XMLStreamWriter) where default case is missing | STYLE | SF_SWITCH_NO_DEFAULT | 307 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Switch statement found in org.deegree.filter.xml.Filter200XMLDecoder.parseExpression(XMLStreamReader) where default case is missing | STYLE | SF_SWITCH_NO_DEFAULT | 363 | Medium |
Switch statement found in org.deegree.filter.xml.Filter200XMLDecoder.parseOperator(XMLStreamReader) where default case is missing | STYLE | SF_SWITCH_NO_DEFAULT | 656 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Redundant nullcheck of attrDecl, which is known to be non-null in org.deegree.gml.commons.AbstractGMLObjectReader.parseAttributes(XMLStreamReader, XSElementDeclaration) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 694 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Load of known null value in org.deegree.gml.commons.AbstractGMLObjectWriter.writeStartElementWithNS(String, String) | STYLE | NP_LOAD_OF_KNOWN_NULL_VALUE | 116 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Comparison of String objects using == or != in org.deegree.gml.feature.GMLFeatureWriter.export(Feature, GmlXlinkOptions) | BAD_PRACTICE | ES_COMPARING_STRINGS_WITH_EQ | 494 | Medium |
Load of known null value in org.deegree.gml.feature.GMLFeatureWriter.exportFeatureProperty(FeaturePropertyType, Feature, GmlXlinkOptions) | STYLE | NP_LOAD_OF_KNOWN_NULL_VALUE | 610 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Check for oddness that won't work for negative numbers in org.deegree.gml.geometry.GML3CurveSegmentReader.parseArcString(XMLStreamReaderWrapper, ICRS) | STYLE | IM_BAD_CHECK_FOR_ODD | 358 | Medium |
Load of known null value in org.deegree.gml.geometry.GML3CurveSegmentReader.parseCircleByCenterPoint(XMLStreamReaderWrapper, ICRS) | STYLE | NP_LOAD_OF_KNOWN_NULL_VALUE | 629 | Medium |
Possible null pointer dereference of points in org.deegree.gml.geometry.GML3CurveSegmentReader.parseGeodesic(XMLStreamReaderWrapper, ICRS) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 819 | Medium |
Possible null pointer dereference of points in org.deegree.gml.geometry.GML3CurveSegmentReader.parseGeodesicString(XMLStreamReaderWrapper, ICRS) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 872 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to value in org.deegree.gml.geometry.GML3GeometryBaseReader.parseAngleType(XMLStreamReaderWrapper) | STYLE | DLS_DEAD_LOCAL_STORE | 279 | Medium |
Dead store to value in org.deegree.gml.geometry.GML3GeometryBaseReader.parseLengthType(XMLStreamReaderWrapper) | STYLE | DLS_DEAD_LOCAL_STORE | 260 | Medium |
Dead store to value in org.deegree.gml.geometry.GML3GeometryBaseReader.parseMeasureType(XMLStreamReaderWrapper) | STYLE | DLS_DEAD_LOCAL_STORE | 298 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of points in org.deegree.gml.geometry.GML3GeometryReader.parseLineString(XMLStreamReaderWrapper, ICRS) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 1188 | Medium |
Possible null pointer dereference of controlPoints in org.deegree.gml.geometry.GML3GeometryReader.parseTin(XMLStreamReaderWrapper, ICRS) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 1708 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.deegree.gml.geometry.validation.GmlStreamGeometryValidator$ValidationEventRedirector be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 137 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.deegree.gml.props.GMLStdPropsImpl.getMetadata() may expose internal representation by returning GMLStdPropsImpl.metadata | MALICIOUS_CODE | EI_EXPOSE_REP | 232 | Medium |
org.deegree.gml.props.GMLStdPropsImpl.getNames() may expose internal representation by returning GMLStdPropsImpl.names | MALICIOUS_CODE | EI_EXPOSE_REP | 259 | Medium |
new org.deegree.gml.props.GMLStdPropsImpl(TypedObjectNode[], StringOrRef, CodeType, CodeType[]) may expose internal representation by storing an externally mutable object into GMLStdPropsImpl.metadata | MALICIOUS_CODE | EI_EXPOSE_REP2 | 215 | Medium |
new org.deegree.gml.props.GMLStdPropsImpl(TypedObjectNode[], StringOrRef, CodeType, CodeType[]) may expose internal representation by storing an externally mutable object into GMLStdPropsImpl.names | MALICIOUS_CODE | EI_EXPOSE_REP2 | 222 | Medium |
org.deegree.gml.props.GMLStdPropsImpl.toString() concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 268 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unread field: org.deegree.gml.reference.GmlXlinkOptions.resolvePath | PERFORMANCE | URF_UNREAD_FIELD | 70 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Switch statement found in org.deegree.gml.schema.GMLAppSchemaReader.addPropertyTypes(List, XSModelGroup, int, int) where default case is missing | STYLE | SF_SWITCH_NO_DEFAULT | 486 | Medium |
Switch statement found in org.deegree.gml.schema.GMLAppSchemaReader.buildPropertyType(XSElementDeclaration, int, int) where default case is missing | STYLE | SF_SWITCH_NO_DEFAULT | 552 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Switch statement found in org.deegree.gml.schema.GMLAppSchemaWriter.exportComplexType(XMLStreamWriter, XSComplexTypeDefinition) where default case is missing | STYLE | SF_SWITCH_NO_DEFAULT | 890 | Medium |
Switch statement found in org.deegree.gml.schema.GMLAppSchemaWriter.getFacetName(short) where default case is missing | STYLE | SF_SWITCH_NO_DEFAULT | 1070 | Medium |
new org.deegree.gml.schema.GMLAppSchemaWriter(GMLVersion, String, Map, Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 236 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Switch statement found in org.deegree.gml.schema.GMLSchemaInfoSet.buildFeaturePropertyType(QName, XSElementDeclaration, XSComplexTypeDefinition, int, int, List) where default case is missing | STYLE | SF_SWITCH_NO_DEFAULT | 726 | Medium |
Switch statement found in org.deegree.gml.schema.GMLSchemaInfoSet.buildGeometryPropertyType(QName, XSElementDeclaration, XSComplexTypeDefinition, int, int, List) where default case is missing | STYLE | SF_SWITCH_NO_DEFAULT | 963 | Medium |
Switch statement found in org.deegree.gml.schema.GMLSchemaInfoSet.determineModelGroupDefinedValueElement(XSComplexTypeDefinition) where default case is missing | STYLE | SF_SWITCH_NO_DEFAULT | 1199 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of schemaReader in org.deegree.gml.schema.WellKnownGMLTypes.extractFcCollectionType(String, GMLVersion, QName) on exception path | CORRECTNESS | NP_NULL_ON_SOME_PATH_EXCEPTION | 117 | Medium |