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
743700

org.deegree.services.wpvs.PerspectiveViewService

BugCategoryDetailsLinePriority
org.deegree.services.wpvs.PerspectiveViewService.getTranslationVector() may expose internal representation by returning PerspectiveViewService.translationToLocalCRSMALICIOUS_CODEEI_EXPOSE_REP545Medium

org.deegree.services.wpvs.config.DEMDataset

BugCategoryDetailsLinePriority
new org.deegree.services.wpvs.config.DEMDataset(int, int, float[], float[], float[], float) may expose internal representation by storing an externally mutable object into DEMDataset.ambientColorMALICIOUS_CODEEI_EXPOSE_REP294Medium
new org.deegree.services.wpvs.config.DEMDataset(int, int, float[], float[], float[], float) may expose internal representation by storing an externally mutable object into DEMDataset.diffuseColorMALICIOUS_CODEEI_EXPOSE_REP295Medium
new org.deegree.services.wpvs.config.DEMDataset(int, int, float[], float[], float[], float) may expose internal representation by storing an externally mutable object into DEMDataset.specularColorMALICIOUS_CODEEI_EXPOSE_REP296Medium

org.deegree.services.wpvs.io.DataObjectInfo

BugCategoryDetailsLinePriority
org.deegree.services.wpvs.io.DataObjectInfo.getSerializedData() may expose internal representation by returning DataObjectInfo.serializedDataMALICIOUS_CODEEI_EXPOSE_REP160Medium
org.deegree.services.wpvs.io.DataObjectInfo.setSerializedData(byte[]) may expose internal representation by storing an externally mutable object into DataObjectInfo.serializedDataMALICIOUS_CODEEI_EXPOSE_REP2168Medium

org.deegree.services.wpvs.io.ModelBackend

BugCategoryDetailsLinePriority
org.deegree.services.wpvs.io.ModelBackend.getWPVSTranslationVector() may expose internal representation by returning ModelBackend.wpvsTranslationVectorMALICIOUS_CODEEI_EXPOSE_REP351Medium
org.deegree.services.wpvs.io.ModelBackend.setWPVSTranslationVector(double[]) may expose internal representation by storing an externally mutable object into ModelBackend.wpvsTranslationVectorMALICIOUS_CODEEI_EXPOSE_REP2359Medium

org.deegree.services.wpvs.io.db.DBBackend

BugCategoryDetailsLinePriority
org.deegree.services.wpvs.io.db.DBBackend.deleteObjectsFromDB(ModelBackend$Type, String) may fail to clean up java.sql.StatementEXPERIMENTALOBL_UNSATISFIED_OBLIGATION528Medium
org.deegree.services.wpvs.io.db.DBBackend.getDeSerializedObjectsForSQL(ModelBackend$Type, String) may fail to clean up java.sql.ResultSetEXPERIMENTALOBL_UNSATISFIED_OBLIGATION365Medium
org.deegree.services.wpvs.io.db.DBBackend.getDeSerializedObjectsForSQL(ModelBackend$Type, String) may fail to clean up java.sql.StatementEXPERIMENTALOBL_UNSATISFIED_OBLIGATION364Medium
org.deegree.services.wpvs.io.db.DBBackend.getRenderableObjects(String, Collection, ObjectSerializer) may fail to clean up java.sql.StatementEXPERIMENTALOBL_UNSATISFIED_OBLIGATION913Medium
org.deegree.services.wpvs.io.db.DBBackend.updateWRO(ModelBackend$Type, int, String) may fail to clean up java.sql.ResultSetEXPERIMENTALOBL_UNSATISFIED_OBLIGATION455Medium
org.deegree.services.wpvs.io.db.DBBackend.updateWRO(ModelBackend$Type, int, String) may fail to clean up java.sql.StatementEXPERIMENTALOBL_UNSATISFIED_OBLIGATION451Medium
org.deegree.services.wpvs.io.db.DBBackend.doInsert(DataObjectInfo, Connection, String) may fail to clean up java.sql.Statement on checked exceptionEXPERIMENTALOBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE740Medium
org.deegree.services.wpvs.io.db.DBBackend.doUpdate(DataObjectInfo, Connection, String) may fail to clean up java.sql.Statement on checked exceptionEXPERIMENTALOBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE765Medium
org.deegree.services.wpvs.io.db.DBBackend.getDeSerializedObjectForUUID(Connection, ModelBackend$Type, String) may fail to clean up java.sql.ResultSet on checked exceptionEXPERIMENTALOBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE393Medium
org.deegree.services.wpvs.io.db.DBBackend.getDeSerializedObjectForUUID(Connection, ModelBackend$Type, String) may fail to clean up java.sql.Statement on checked exceptionEXPERIMENTALOBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE391Medium
org.deegree.services.wpvs.io.db.DBBackend.getResultSet(Connection, String, String) may fail to clean up java.sql.Statement on checked exceptionEXPERIMENTALOBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE982Medium
org.deegree.services.wpvs.io.db.DBBackend.shouldUpdate(Connection, String, String) may fail to clean up java.sql.ResultSet on checked exceptionEXPERIMENTALOBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE793Medium
org.deegree.services.wpvs.io.db.DBBackend.shouldUpdate(Connection, String, String) may fail to clean up java.sql.Statement on checked exceptionEXPERIMENTALOBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE790Medium
org.deegree.services.wpvs.io.db.DBBackend.deleteObjectsFromDB(ModelBackend$Type, String) may fail to close PreparedStatementBAD_PRACTICEODR_OPEN_DATABASE_RESOURCE528Medium
org.deegree.services.wpvs.io.db.DBBackend.getDeSerializedObjectsForSQL(ModelBackend$Type, String) may fail to close PreparedStatementBAD_PRACTICEODR_OPEN_DATABASE_RESOURCE364Medium
org.deegree.services.wpvs.io.db.DBBackend.getRenderableObjects(String, Collection, ObjectSerializer) may fail to close PreparedStatementBAD_PRACTICEODR_OPEN_DATABASE_RESOURCE913Medium
org.deegree.services.wpvs.io.db.DBBackend.updateWRO(ModelBackend$Type, int, String) may fail to close PreparedStatementBAD_PRACTICEODR_OPEN_DATABASE_RESOURCE451Medium
Redundant nullcheck of tree, which is known to be non-null in org.deegree.services.wpvs.io.db.DBBackend.loadTrees(TreeRenderer, ICRS)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE319Medium

org.deegree.services.wpvs.io.file.DataFile

BugCategoryDetailsLinePriority
exceptional return value of java.io.File.createNewFile() ignored in org.deegree.services.wpvs.io.file.DataFile.close()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE255Medium

org.deegree.services.wpvs.io.file.FileBackend

BugCategoryDetailsLinePriority
exceptional return value of java.io.File.createNewFile() ignored in org.deegree.services.wpvs.io.file.FileBackend.initFiles(File)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE380Medium

org.deegree.services.wpvs.io.file.IndexFile

BugCategoryDetailsLinePriority
exceptional return value of java.io.File.createNewFile() ignored in org.deegree.services.wpvs.io.file.IndexFile.close()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE165Medium

org.deegree.services.wpvs.io.file.IndexFile$PositionBlob

BugCategoryDetailsLinePriority
org.deegree.services.wpvs.io.file.IndexFile$PositionBlob defines equals and uses Object.hashCode()BAD_PRACTICEHE_EQUALS_USE_HASHCODE245Medium

org.deegree.services.wpvs.io.file.ModelFile

BugCategoryDetailsLinePriority
Redundant nullcheck of fromFile, which is known to be non-null in org.deegree.services.wpvs.io.file.ModelFile.readAllFromFile(ICRS)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE278Medium
exceptional return value of java.io.File.createNewFile() ignored in org.deegree.services.wpvs.io.file.ModelFile.writeBackendInfo()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE218Medium

org.deegree.services.wpvs.io.serializer.ObjectSerializer

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.deegree.services.wpvs.io.serializer.ObjectSerializer.readString(ByteBuffer): new String(byte[])I18NDM_DEFAULT_ENCODING243High
Found reliance on default encoding in org.deegree.services.wpvs.io.serializer.ObjectSerializer.sizeOfString(String): String.getBytes()I18NDM_DEFAULT_ENCODING259High
Found reliance on default encoding in org.deegree.services.wpvs.io.serializer.ObjectSerializer.writeString(ByteBuffer, String): String.getBytes()I18NDM_DEFAULT_ENCODING223High

org.deegree.services.wpvs.rendering.jogl.ConfiguredOpenGLInitValues

BugCategoryDetailsLinePriority
Synchronization on interned String in org.deegree.services.wpvs.rendering.jogl.ConfiguredOpenGLInitValues.createCompositingTextureShaderPrograms(GL)MT_CORRECTNESSDL_SYNCHRONIZATION_ON_SHARED_CONSTANT126Medium
org.deegree.services.wpvs.rendering.jogl.ConfiguredOpenGLInitValues.getCompositingTextureShaderPrograms() may expose internal representation by returning ConfiguredOpenGLInitValues.compositeTextureShaderProgramsMALICIOUS_CODEEI_EXPOSE_REP153Medium