The following document contains the results of FindBugs
FindBugs Version is 3.0.1
Threshold is medium
Effort is min
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Redundant nullcheck of uri, which is known to be non-null in org.universAAL.samples.context.reasoner.client.gui.QueryCreatorFrame$3.actionPerformed(ActionEvent) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 215 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Changes to logger could be lost in org.universAAL.samples.context.reasoner.client.gui.ReasoningGUI.<static initializer for ReasoningGUI>() | EXPERIMENTAL | LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE | 62 | High |
Redundant nullcheck of selItem, which is known to be non-null in org.universAAL.samples.context.reasoner.client.gui.ReasoningGUI.removeSelectedQuery() | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 263 | Medium |
Redundant nullcheck of selItem, which is known to be non-null in org.universAAL.samples.context.reasoner.client.gui.ReasoningGUI.removeSelectedRule() | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 278 | Medium |
Redundant nullcheck of selItem, which is known to be non-null in org.universAAL.samples.context.reasoner.client.gui.ReasoningGUI.removeSelectedSituation() | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 243 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Should org.universAAL.samples.context.reasoner.client.gui.ReasoningGUI$ElementBox be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 87 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.universAAL.samples.context.reasoner.client.interfaces.CHECaller.executeQuery(String) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 79 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.universAAL.samples.context.reasoner.client.interfaces.ContextEventRecorder.loadArray(String): new java.io.FileReader(File) | I18N | DM_DEFAULT_ENCODING | 206 | High |
Found reliance on default encoding in org.universAAL.samples.context.reasoner.client.interfaces.ContextEventRecorder.saveArray(String, ArrayList): new java.io.FileWriter(File, boolean) | I18N | DM_DEFAULT_ENCODING | 178 | High |
Exceptional return value of java.io.File.mkdirs() ignored in new org.universAAL.samples.context.reasoner.client.interfaces.ContextEventRecorder(ModuleContext) | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 84 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.universAAL.samples.context.reasoner.client.osgi.Activator.context isn't final and can't be protected from malicious code | MALICIOUS_CODE | MS_CANNOT_BE_FINAL | 45 | Medium |
org.universAAL.samples.context.reasoner.client.osgi.Activator.dataHome isn't final and can't be protected from malicious code | MALICIOUS_CODE | MS_CANNOT_BE_FINAL | Medium | |
Write to static field org.universAAL.samples.context.reasoner.client.osgi.Activator.context from instance method org.universAAL.samples.context.reasoner.client.osgi.Activator.stop(BundleContext) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 60 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.universAAL.samples.context.reasoner.client.osgi.GUIActivator.cheCaller isn't final and can't be protected from malicious code | MALICIOUS_CODE | MS_CANNOT_BE_FINAL | 31 | Medium |
org.universAAL.samples.context.reasoner.client.osgi.GUIActivator.gui should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 30 | Medium |
org.universAAL.samples.context.reasoner.client.osgi.GUIActivator.scaller should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 29 | Medium |
Write to static field org.universAAL.samples.context.reasoner.client.osgi.GUIActivator.scaller from instance method new org.universAAL.samples.context.reasoner.client.osgi.GUIActivator(BundleContext, ModuleContext) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 34 | High |
Write to static field org.universAAL.samples.context.reasoner.client.osgi.GUIActivator.cheCaller from instance method new org.universAAL.samples.context.reasoner.client.osgi.GUIActivator(BundleContext, ModuleContext) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 36 | Medium |
Write to static field org.universAAL.samples.context.reasoner.client.osgi.GUIActivator.gui from instance method new org.universAAL.samples.context.reasoner.client.osgi.GUIActivator(BundleContext, ModuleContext) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 35 | Medium |
Write to static field org.universAAL.samples.context.reasoner.client.osgi.GUIActivator.cheCaller from instance method org.universAAL.samples.context.reasoner.client.osgi.GUIActivator.stop() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 45 | Medium |
Write to static field org.universAAL.samples.context.reasoner.client.osgi.GUIActivator.gui from instance method org.universAAL.samples.context.reasoner.client.osgi.GUIActivator.stop() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 43 | Medium |
Write to static field org.universAAL.samples.context.reasoner.client.osgi.GUIActivator.scaller from instance method org.universAAL.samples.context.reasoner.client.osgi.GUIActivator.stop() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 41 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.universAAL.samples.context.reasoner.client.osgi.InterfaceActivator.serializer isn't final and can't be protected from malicious code | MALICIOUS_CODE | MS_CANNOT_BE_FINAL | 32 | Medium |
Write to static field org.universAAL.samples.context.reasoner.client.osgi.InterfaceActivator.serializer from instance method org.universAAL.samples.context.reasoner.client.osgi.InterfaceActivator.serviceChanged(ServiceEvent) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 51 | High |