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_OBLIGATION531Medium
org.deegree.services.wpvs.io.db.DBBackend.getDeSerializedObjectsForSQL(ModelBackend$Type, String) may fail to clean up java.sql.ResultSetEXPERIMENTALOBL_UNSATISFIED_OBLIGATION368Medium
org.deegree.services.wpvs.io.db.DBBackend.getDeSerializedObjectsForSQL(ModelBackend$Type, String) may fail to clean up java.sql.StatementEXPERIMENTALOBL_UNSATISFIED_OBLIGATION367Medium
org.deegree.services.wpvs.io.db.DBBackend.getRenderableObjects(String, Collection, ObjectSerializer) may fail to clean up java.sql.StatementEXPERIMENTALOBL_UNSATISFIED_OBLIGATION916Medium
org.deegree.services.wpvs.io.db.DBBackend.updateWRO(ModelBackend$Type, int, String) may fail to clean up java.sql.ResultSetEXPERIMENTALOBL_UNSATISFIED_OBLIGATION458Medium
org.deegree.services.wpvs.io.db.DBBackend.updateWRO(ModelBackend$Type, int, String) may fail to clean up java.sql.StatementEXPERIMENTALOBL_UNSATISFIED_OBLIGATION454Medium
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_EDGE743Medium
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_EDGE768Medium
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_EDGE396Medium
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_EDGE394Medium
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_EDGE985Medium
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_EDGE796Medium
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_EDGE793Medium
org.deegree.services.wpvs.io.db.DBBackend.deleteObjectsFromDB(ModelBackend$Type, String) may fail to close PreparedStatementBAD_PRACTICEODR_OPEN_DATABASE_RESOURCE531Medium
org.deegree.services.wpvs.io.db.DBBackend.getDeSerializedObjectsForSQL(ModelBackend$Type, String) may fail to close PreparedStatementBAD_PRACTICEODR_OPEN_DATABASE_RESOURCE367Medium
org.deegree.services.wpvs.io.db.DBBackend.getRenderableObjects(String, Collection, ObjectSerializer) may fail to close PreparedStatementBAD_PRACTICEODR_OPEN_DATABASE_RESOURCE916Medium
org.deegree.services.wpvs.io.db.DBBackend.updateWRO(ModelBackend$Type, int, String) may fail to close PreparedStatementBAD_PRACTICEODR_OPEN_DATABASE_RESOURCE454Medium
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_VALUE323Medium

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