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
584800

org.deegree.tools.coverage.gridifier.RasterTreeGridifier

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.deegree.tools.coverage.gridifier.RasterTreeGridifier.writeMetaInfoFile(File, RasterGeoReference, int, int): new java.io.FileWriter(File)I18NDM_DEFAULT_ENCODING301High

org.deegree.tools.coverage.gridifier.index.MultiLevelMemoryTileGridIndex

BugCategoryDetailsLinePriority
org.deegree.tools.coverage.gridifier.index.MultiLevelMemoryTileGridIndex.buildGridIndex(Connection, RasterLevel) passes a nonconstant String to an execute method on an SQL statementSECURITYSQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE153Medium

org.deegree.tools.coverage.gridifier.index.MultiResolutionTileGrid

BugCategoryDetailsLinePriority
org.deegree.tools.coverage.gridifier.index.MultiResolutionTileGrid.getRasterLevels() may expose internal representation by returning MultiResolutionTileGrid.rasterLevelsMALICIOUS_CODEEI_EXPOSE_REP94Medium

org.deegree.tools.coverage.gridifier.index.PostGISRasterTileIndex

BugCategoryDetailsLinePriority
org.deegree.tools.coverage.gridifier.index.PostGISRasterTileIndex.getRasterLevels() may expose internal representation by returning PostGISRasterTileIndex.levelsMALICIOUS_CODEEI_EXPOSE_REP210Medium
org.deegree.tools.coverage.gridifier.index.PostGISRasterTileIndex.getTiles(Envelope, double) may fail to clean up java.sql.ResultSetEXPERIMENTALOBL_UNSATISFIED_OBLIGATION115Medium
org.deegree.tools.coverage.gridifier.index.PostGISRasterTileIndex.getTiles(Envelope, double) may fail to clean up java.sql.StatementEXPERIMENTALOBL_UNSATISFIED_OBLIGATION109Medium
org.deegree.tools.coverage.gridifier.index.PostGISRasterTileIndex.getTiles(Envelope, double) may fail to close StatementBAD_PRACTICEODR_OPEN_DATABASE_RESOURCE109Medium
org.deegree.tools.coverage.gridifier.index.PostGISRasterTileIndex.getTiles(Envelope, double) passes a nonconstant String to an execute method on an SQL statementSECURITYSQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE115Medium

org.deegree.tools.coverage.gridifier.index.TileFile

BugCategoryDetailsLinePriority

org.deegree.tools.coverage.rtb.RasterTreeBuilder

BugCategoryDetailsLinePriority
org.deegree.tools.coverage.rtb.RasterTreeBuilder.outputDir(int) invokes System.exit(...), which shuts down the entire virtual machineBAD_PRACTICEDM_EXIT388Medium
org.deegree.tools.coverage.rtb.RasterTreeBuilder.setBackgroundValue(byte[]) may expose internal representation by storing an externally mutable object into RasterTreeBuilder.backgroundValueMALICIOUS_CODEEI_EXPOSE_REP2169Medium

org.deegree.tools.coverage.rtb.TileGrid

BugCategoryDetailsLinePriority
Unread field: org.deegree.tools.coverage.rtb.TileGrid.precisionPERFORMANCEURF_UNREAD_FIELD77Medium

org.deegree.tools.crs.CRSInfo

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.deegree.tools.crs.CRSInfo.getAll(boolean, File): new java.io.FileWriter(File)I18NDM_DEFAULT_ENCODING148High
Found reliance on default encoding in org.deegree.tools.crs.CRSInfo.init(CommandLine): new java.io.FileWriter(File)I18NDM_DEFAULT_ENCODING248High
Found reliance on default encoding in org.deegree.tools.crs.CRSInfo.init(CommandLine): new java.io.InputStreamReader(InputStream)I18NDM_DEFAULT_ENCODING233High
org.deegree.tools.crs.CRSInfo.init(CommandLine) may fail to clean up java.io.Writer on checked exceptionEXPERIMENTALOBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE248Medium

org.deegree.tools.crs.ConfigurationConverger

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.deegree.tools.crs.ConfigurationConverger.init(CommandLine): new java.io.FileWriter(File)I18NDM_DEFAULT_ENCODING225High

org.deegree.tools.crs.CoordinateTransform

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.deegree.tools.crs.CoordinateTransform.init(CommandLine): new java.io.FileReader(String)I18NDM_DEFAULT_ENCODING223High
org.deegree.tools.crs.CoordinateTransform.init(CommandLine) may fail to close streamBAD_PRACTICEOS_OPEN_STREAM223Medium

org.deegree.tools.crs.EPSGDBSynchronizer

BugCategoryDetailsLinePriority
org.deegree.tools.crs.EPSGDBSynchronizer.getCodesForProjections(DBCRSStore) may fail to close PreparedStatementBAD_PRACTICEODR_OPEN_DATABASE_RESOURCE120Medium

org.deegree.tools.crs.PolynomialParameterCreator

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.deegree.tools.crs.PolynomialParameterCreator.readFromFile(File, int, String): new java.io.FileReader(File)I18NDM_DEFAULT_ENCODING143High
new org.deegree.tools.crs.PolynomialParameterCreator(File, File, String, ICRS, ICRS, String, int) invokes System.exit(...), which shuts down the entire virtual machineBAD_PRACTICEDM_EXIT104Medium
Redundant nullcheck of polyOrder, which is known to be non-null in org.deegree.tools.crs.PolynomialParameterCreator.main(String[])STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE233Medium

org.deegree.tools.crs.XMLCoordinateTransform

BugCategoryDetailsLinePriority
org.deegree.tools.crs.XMLCoordinateTransform.doTransform(CommandLine) may fail to clean up java.io.InputStreamEXPERIMENTALOBL_UNSATISFIED_OBLIGATION174Medium
org.deegree.tools.crs.XMLCoordinateTransform.doTransform(CommandLine) may fail to clean up java.io.OutputStreamEXPERIMENTALOBL_UNSATISFIED_OBLIGATION180Medium

org.deegree.tools.feature.gml.ApplicationSchemaTool

BugCategoryDetailsLinePriority
Dead store to ftNameToHints in org.deegree.tools.feature.gml.ApplicationSchemaTool.mapToPostGIS(ApplicationSchemaTool$InputFormat, String, String)STYLEDLS_DEAD_LOCAL_STORE176Medium
Found reliance on default encoding in org.deegree.tools.feature.gml.ApplicationSchemaTool.mapToPostGIS(ApplicationSchemaTool$InputFormat, String, String): new java.io.FileReader(String)I18NDM_DEFAULT_ENCODING158High
org.deegree.tools.feature.gml.ApplicationSchemaTool.mapToPostGIS(ApplicationSchemaTool$InputFormat, String, String) may fail to close streamBAD_PRACTICEOS_OPEN_STREAM158Medium
Exception is caught when Exception is not thrown in org.deegree.tools.feature.gml.ApplicationSchemaTool.createDDL(ApplicationSchemaTool$InputFormat, String, String)STYLEREC_CATCH_EXCEPTION435Medium
org.deegree.tools.feature.gml.ApplicationSchemaTool.initOptions() concatenates strings using + in a loopPERFORMANCESBSC_USE_STRINGBUFFER_CONCATENATION595Medium
Switch statement found in org.deegree.tools.feature.gml.ApplicationSchemaTool.createDDL(ApplicationSchemaTool$InputFormat, String, String) where default case is missingSTYLESF_SWITCH_NO_DEFAULT363Medium

org.deegree.tools.feature.gml.FeatureTypeGraph

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.deegree.tools.feature.gml.FeatureTypeGraph.createDotGraph(AppSchema, String): new java.io.FileWriter(File)I18NDM_DEFAULT_ENCODING76High

org.deegree.tools.feature.gml.GMLSchemaComparator

BugCategoryDetailsLinePriority
Unread field: org.deegree.tools.feature.gml.GMLSchemaComparator.schema1PERFORMANCEURF_UNREAD_FIELD47Medium
Unread field: org.deegree.tools.feature.gml.GMLSchemaComparator.schema2PERFORMANCEURF_UNREAD_FIELD48Medium

org.deegree.tools.feature.gml.MappingShortener

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.deegree.tools.feature.gml.MappingShortener.main(String[]): new java.io.FileReader(String)I18NDM_DEFAULT_ENCODING76High
Found reliance on default encoding in org.deegree.tools.feature.gml.MappingShortener.main(String[]): new java.io.FileReader(String)I18NDM_DEFAULT_ENCODING89High

org.deegree.tools.feature.gml.SchemaAnalyzer

BugCategoryDetailsLinePriority
org.deegree.tools.feature.gml.SchemaAnalyzer.generateParticleHierarchy(XSParticle, String) concatenates strings using + in a loopPERFORMANCESBSC_USE_STRINGBUFFER_CONCATENATION260Medium
org.deegree.tools.feature.gml.SchemaAnalyzer.toString(XSComplexTypeDefinition) concatenates strings using + in a loopPERFORMANCESBSC_USE_STRINGBUFFER_CONCATENATION162Medium

org.deegree.tools.feature.persistence.FeatureStoreLoader

BugCategoryDetailsLinePriority
org.deegree.tools.feature.persistence.FeatureStoreLoader.initOptions() concatenates strings using + in a loopPERFORMANCESBSC_USE_STRINGBUFFER_CONCATENATION214Medium

org.deegree.tools.i18n.Messages

BugCategoryDetailsLinePriority
org.deegree.tools.i18n.Messages.<static initializer>() may fail to clean up java.io.InputStreamEXPERIMENTALOBL_UNSATISFIED_OBLIGATION87Medium
org.deegree.tools.i18n.Messages.overrideMessages(String, Properties) may fail to clean up java.io.InputStream on checked exceptionEXPERIMENTALOBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE116Medium
org.deegree.tools.i18n.Messages.<static initializer>() may fail to close streamBAD_PRACTICEOS_OPEN_STREAM87Medium
org.deegree.tools.i18n.Messages.overrideMessages(String, Properties) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR125Medium

org.deegree.tools.metadata.ISO19139Validator

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.deegree.tools.metadata.ISO19139Validator.run(String, String, String): new java.io.FileWriter(File)I18NDM_DEFAULT_ENCODING133High
org.deegree.tools.metadata.ISO19139Validator.run(String, String, String) may fail to clean up java.io.Writer on checked exceptionEXPERIMENTALOBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE133Medium
exceptional return value of java.io.File.createNewFile() ignored in org.deegree.tools.metadata.ISO19139Validator.run(String, String, String)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE107Medium

org.deegree.tools.rendering.r2d.se.StyleChecker

BugCategoryDetailsLinePriority
A prepared statement is generated from a nonconstant String in org.deegree.tools.rendering.r2d.se.StyleChecker.clean(String) SECURITYSQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING185Medium

org.deegree.tools.services.wms.FeatureTypesToLayerTree

BugCategoryDetailsLinePriority
org.deegree.tools.services.wms.FeatureTypesToLayerTree.main(String[]) may fail to clean up java.io.OutputStreamEXPERIMENTALOBL_UNSATISFIED_OBLIGATION143Medium