FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.1

Threshold is medium

Effort is min

Summary

Classes Bugs Errors Missing Classes
9 14 0 0

org.universAAL.ontology.reasoner.Persistent

Bug Category Details Line Priority
org.universAAL.ontology.reasoner.Persistent.setPersistent(boolean) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead PERFORMANCE DM_BOOLEAN_CTOR 65 Medium

org.universAAL.ontology.reasoner.Query

Bug Category Details Line Priority
org.universAAL.ontology.reasoner.Query defines equals(Query) method but not equals(Object) BAD_PRACTICE EQ_SELF_NO_OBJECT 106 Medium
Comparison of String objects using == or != in org.universAAL.ontology.reasoner.Query.equals(Query) BAD_PRACTICE ES_COMPARING_STRINGS_WITH_EQ 114 Medium

org.universAAL.ontology.reasoner.Rule

Bug Category Details Line Priority
org.universAAL.ontology.reasoner.Rule defines equals(Rule) method but not equals(Object) BAD_PRACTICE EQ_SELF_NO_OBJECT 78 Medium

org.universAAL.ontology.reasoner.Situation

Bug Category Details Line Priority
org.universAAL.ontology.reasoner.Situation defines equals(Situation) method but not equals(Object) BAD_PRACTICE EQ_SELF_NO_OBJECT 90 Medium
Comparison of String objects using == or != in org.universAAL.ontology.reasoner.Situation.equals(Situation) BAD_PRACTICE ES_COMPARING_STRINGS_WITH_EQ 91 Medium
Comparison of String objects using == or != in org.universAAL.ontology.reasoner.Situation.equals(Situation) BAD_PRACTICE ES_COMPARING_STRINGS_WITH_EQ 93 Medium

org.universAAL.ontology.reasoner.util.ElementModel

Bug Category Details Line Priority
instanceof will always return true for all non-null values in org.universAAL.ontology.reasoner.util.ElementModel.add(Resource), since all org.universAAL.ontology.reasoner.Persistent are instances of org.universAAL.ontology.reasoner.Persistent STYLE BC_VACUOUS_INSTANCEOF 197 Medium
instanceof will always return true for all non-null values in org.universAAL.ontology.reasoner.util.ElementModel.remove(Resource), since all org.universAAL.ontology.reasoner.Persistent are instances of org.universAAL.ontology.reasoner.Persistent STYLE BC_VACUOUS_INSTANCEOF 209 Medium
Found reliance on default encoding in org.universAAL.ontology.reasoner.util.ElementModel.load(File): new java.io.FileReader(File) I18N DM_DEFAULT_ENCODING 167 High
Found reliance on default encoding in org.universAAL.ontology.reasoner.util.ElementModel.saveObject(Resource, File): new java.io.FileWriter(File, boolean) I18N DM_DEFAULT_ENCODING 137 High
Possible null pointer dereference in org.universAAL.ontology.reasoner.util.ElementModel.loadElements() due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 158 Medium
Exceptional return value of java.io.File.mkdirs() ignored in new org.universAAL.ontology.reasoner.util.ElementModel(Class, MessageContentSerializer, String) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 109 Medium
Exceptional return value of java.io.File.delete() ignored in org.universAAL.ontology.reasoner.util.ElementModel.remove(Resource) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 215 Medium