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 |
---|---|---|---|---|
Found reliance on default encoding in org.deegree.tools.coverage.gridifier.RasterTreeGridifier.writeMetaInfoFile(File, RasterGeoReference, int, int): new java.io.FileWriter(File) | I18N | DM_DEFAULT_ENCODING | 301 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.deegree.tools.coverage.gridifier.index.MultiLevelMemoryTileGridIndex.buildGridIndex(Connection, RasterLevel) passes a nonconstant String to an execute method on an SQL statement | SECURITY | SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE | 153 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.deegree.tools.coverage.gridifier.index.MultiResolutionTileGrid.getRasterLevels() may expose internal representation by returning MultiResolutionTileGrid.rasterLevels | MALICIOUS_CODE | EI_EXPOSE_REP | 94 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.deegree.tools.coverage.gridifier.index.PostGISRasterTileIndex.getRasterLevels() may expose internal representation by returning PostGISRasterTileIndex.levels | MALICIOUS_CODE | EI_EXPOSE_REP | 210 | Medium |
org.deegree.tools.coverage.gridifier.index.PostGISRasterTileIndex.getTiles(Envelope, double) may fail to clean up java.sql.ResultSet | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 115 | Medium |
org.deegree.tools.coverage.gridifier.index.PostGISRasterTileIndex.getTiles(Envelope, double) may fail to clean up java.sql.Statement | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 109 | Medium |
org.deegree.tools.coverage.gridifier.index.PostGISRasterTileIndex.getTiles(Envelope, double) may fail to close Statement | BAD_PRACTICE | ODR_OPEN_DATABASE_RESOURCE | 109 | Medium |
org.deegree.tools.coverage.gridifier.index.PostGISRasterTileIndex.getTiles(Envelope, double) passes a nonconstant String to an execute method on an SQL statement | SECURITY | SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE | 115 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.deegree.tools.coverage.rtb.RasterTreeBuilder.outputDir(int) invokes System.exit(...), which shuts down the entire virtual machine | BAD_PRACTICE | DM_EXIT | 388 | Medium |
org.deegree.tools.coverage.rtb.RasterTreeBuilder.setBackgroundValue(byte[]) may expose internal representation by storing an externally mutable object into RasterTreeBuilder.backgroundValue | MALICIOUS_CODE | EI_EXPOSE_REP2 | 169 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unread field: org.deegree.tools.coverage.rtb.TileGrid.precision | PERFORMANCE | URF_UNREAD_FIELD | 77 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.deegree.tools.crs.CRSInfo.getAll(boolean, File): new java.io.FileWriter(File) | I18N | DM_DEFAULT_ENCODING | 148 | High |
Found reliance on default encoding in org.deegree.tools.crs.CRSInfo.init(CommandLine): new java.io.FileWriter(File) | I18N | DM_DEFAULT_ENCODING | 248 | High |
Found reliance on default encoding in org.deegree.tools.crs.CRSInfo.init(CommandLine): new java.io.InputStreamReader(InputStream) | I18N | DM_DEFAULT_ENCODING | 233 | High |
org.deegree.tools.crs.CRSInfo.init(CommandLine) may fail to clean up java.io.Writer on checked exception | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE | 248 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.deegree.tools.crs.ConfigurationConverger.init(CommandLine): new java.io.FileWriter(File) | I18N | DM_DEFAULT_ENCODING | 225 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.deegree.tools.crs.CoordinateTransform.init(CommandLine): new java.io.FileReader(String) | I18N | DM_DEFAULT_ENCODING | 223 | High |
org.deegree.tools.crs.CoordinateTransform.init(CommandLine) may fail to close stream | BAD_PRACTICE | OS_OPEN_STREAM | 223 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.deegree.tools.crs.EPSGDBSynchronizer.getCodesForProjections(DBCRSStore) may fail to close PreparedStatement | BAD_PRACTICE | ODR_OPEN_DATABASE_RESOURCE | 120 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.deegree.tools.crs.PolynomialParameterCreator.readFromFile(File, int, String): new java.io.FileReader(File) | I18N | DM_DEFAULT_ENCODING | 143 | High |
new org.deegree.tools.crs.PolynomialParameterCreator(File, File, String, ICRS, ICRS, String, int) invokes System.exit(...), which shuts down the entire virtual machine | BAD_PRACTICE | DM_EXIT | 104 | Medium |
Redundant nullcheck of polyOrder, which is known to be non-null in org.deegree.tools.crs.PolynomialParameterCreator.main(String[]) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 233 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.deegree.tools.crs.XMLCoordinateTransform.doTransform(CommandLine) may fail to clean up java.io.InputStream | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 174 | Medium |
org.deegree.tools.crs.XMLCoordinateTransform.doTransform(CommandLine) may fail to clean up java.io.OutputStream | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 180 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to ftNameToHints in org.deegree.tools.feature.gml.ApplicationSchemaTool.mapToPostGIS(ApplicationSchemaTool$InputFormat, String, String) | STYLE | DLS_DEAD_LOCAL_STORE | 176 | Medium |
Found reliance on default encoding in org.deegree.tools.feature.gml.ApplicationSchemaTool.mapToPostGIS(ApplicationSchemaTool$InputFormat, String, String): new java.io.FileReader(String) | I18N | DM_DEFAULT_ENCODING | 158 | High |
org.deegree.tools.feature.gml.ApplicationSchemaTool.mapToPostGIS(ApplicationSchemaTool$InputFormat, String, String) may fail to close stream | BAD_PRACTICE | OS_OPEN_STREAM | 158 | Medium |
Exception is caught when Exception is not thrown in org.deegree.tools.feature.gml.ApplicationSchemaTool.createDDL(ApplicationSchemaTool$InputFormat, String, String) | STYLE | REC_CATCH_EXCEPTION | 435 | Medium |
org.deegree.tools.feature.gml.ApplicationSchemaTool.initOptions() concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 595 | Medium |
Switch statement found in org.deegree.tools.feature.gml.ApplicationSchemaTool.createDDL(ApplicationSchemaTool$InputFormat, String, String) where default case is missing | STYLE | SF_SWITCH_NO_DEFAULT | 363 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.deegree.tools.feature.gml.FeatureTypeGraph.createDotGraph(AppSchema, String): new java.io.FileWriter(File) | I18N | DM_DEFAULT_ENCODING | 76 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unread field: org.deegree.tools.feature.gml.GMLSchemaComparator.schema1 | PERFORMANCE | URF_UNREAD_FIELD | 47 | Medium |
Unread field: org.deegree.tools.feature.gml.GMLSchemaComparator.schema2 | PERFORMANCE | URF_UNREAD_FIELD | 48 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.deegree.tools.feature.gml.MappingShortener.main(String[]): new java.io.FileReader(String) | I18N | DM_DEFAULT_ENCODING | 76 | High |
Found reliance on default encoding in org.deegree.tools.feature.gml.MappingShortener.main(String[]): new java.io.FileReader(String) | I18N | DM_DEFAULT_ENCODING | 89 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.deegree.tools.feature.gml.SchemaAnalyzer.generateParticleHierarchy(XSParticle, String) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 260 | Medium |
org.deegree.tools.feature.gml.SchemaAnalyzer.toString(XSComplexTypeDefinition) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 162 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.deegree.tools.feature.persistence.FeatureStoreLoader.initOptions() concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 214 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.deegree.tools.i18n.Messages.<static initializer>() may fail to clean up java.io.InputStream | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 87 | Medium |
org.deegree.tools.i18n.Messages.overrideMessages(String, Properties) may fail to clean up java.io.InputStream on checked exception | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE | 116 | Medium |
org.deegree.tools.i18n.Messages.<static initializer>() may fail to close stream | BAD_PRACTICE | OS_OPEN_STREAM | 87 | Medium |
org.deegree.tools.i18n.Messages.overrideMessages(String, Properties) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 125 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.deegree.tools.metadata.ISO19139Validator.run(String, String, String): new java.io.FileWriter(File) | I18N | DM_DEFAULT_ENCODING | 133 | High |
org.deegree.tools.metadata.ISO19139Validator.run(String, String, String) may fail to clean up java.io.Writer on checked exception | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE | 133 | Medium |
exceptional return value of java.io.File.createNewFile() ignored in org.deegree.tools.metadata.ISO19139Validator.run(String, String, String) | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 107 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
A prepared statement is generated from a nonconstant String in org.deegree.tools.rendering.r2d.se.StyleChecker.clean(String) | SECURITY | SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING | 180 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.deegree.tools.services.wms.FeatureTypesToLayerTree.main(String[]) may fail to clean up java.io.OutputStream | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 143 | Medium |