FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 2.0.0

Threshold is medium

Effort is min

Summary

ClassesBugsErrorsMissing Classes
825300

org.universAAL.ri.gateway.communicator.Activator

BugCategoryDetailsLinePriority
org.universAAL.ri.gateway.communicator.Activator.bc isn't final and can't be protected from malicious code MALICIOUS_CODEMS_CANNOT_BE_FINALNot availableMedium
org.universAAL.ri.gateway.communicator.Activator.mc isn't final and can't be protected from malicious code MALICIOUS_CODEMS_CANNOT_BE_FINALNot availableMedium
Write to static field org.universAAL.ri.gateway.communicator.Activator.bc from instance method org.universAAL.ri.gateway.communicator.Activator.start(BundleContext)STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD70Medium

org.universAAL.ri.gateway.communicator.service.Message

BugCategoryDetailsLinePriority
Possible null pointer dereference of Message.content in org.universAAL.ri.gateway.communicator.service.Message.equals(Object)CORRECTNESSNP_NULL_ON_SOME_PATH84Medium

org.universAAL.ri.gateway.communicator.service.impl.CommunicatorStarter

BugCategoryDetailsLinePriority
org.universAAL.ri.gateway.communicator.service.impl.CommunicatorStarter.properties should be package protectedMALICIOUS_CODEMS_PKGPROTECTNot availableMedium
Null passed for nonnull parameter of java.util.Properties.getProperty(String) in org.universAAL.ri.gateway.communicator.service.impl.CommunicatorStarter.convertSecurityPropertiesToObjectNotation(Type, SecurityAction)CORRECTNESSNP_NULL_PARAM_DEREF227Medium
org.universAAL.ri.gateway.communicator.service.impl.CommunicatorStarter.loadConfiguration() may fail to clean up java.io.InputStreamEXPERIMENTALOBL_UNSATISFIED_OBLIGATION174Medium
org.universAAL.ri.gateway.communicator.service.impl.CommunicatorStarter.loadConfiguration() may fail to close streamBAD_PRACTICEOS_OPEN_STREAM174Medium
exceptional return value of java.io.File.mkdirs() ignored in org.universAAL.ri.gateway.communicator.service.impl.CommunicatorStarter.loadConfiguration()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE171Medium
Unread field: org.universAAL.ri.gateway.communicator.service.impl.CommunicatorStarter.contextPERFORMANCEURF_UNREAD_FIELD92Medium

org.universAAL.ri.gateway.communicator.service.impl.EncryptionWrapper

BugCategoryDetailsLinePriority
org.universAAL.ri.gateway.communicator.service.impl.EncryptionWrapper.getPayload() may expose internal representation by returning EncryptionWrapper.payloadMALICIOUS_CODEEI_EXPOSE_REP39Medium
new org.universAAL.ri.gateway.communicator.service.impl.EncryptionWrapper(byte[]) may expose internal representation by storing an externally mutable object into EncryptionWrapper.payloadMALICIOUS_CODEEI_EXPOSE_REP233Medium

org.universAAL.ri.gateway.communicator.service.impl.GatewayAddress

BugCategoryDetailsLinePriority
Unread field: org.universAAL.ri.gateway.communicator.service.impl.GatewayAddress.PROTOCOL; should this field be static?PERFORMANCESS_SHOULD_BE_STATIC28Medium

org.universAAL.ri.gateway.communicator.service.impl.GatewayCommunicatorImpl

BugCategoryDetailsLinePriority
Possible null pointer dereference of profiles in org.universAAL.ri.gateway.communicator.service.impl.GatewayCommunicatorImpl.handleMessage(InputStream, OutputStream)CORRECTNESSNP_NULL_ON_SOME_PATH505Medium
Nullcheck of cpe at line 532 of value previously dereferenced in org.universAAL.ri.gateway.communicator.service.impl.GatewayCommunicatorImpl.handleMessage(InputStream, OutputStream)CORRECTNESSRCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE532Medium
Exception is caught when Exception is not thrown in org.universAAL.ri.gateway.communicator.service.impl.GatewayCommunicatorImpl.handleMessage(InputStream, OutputStream)STYLEREC_CATCH_EXCEPTION662Medium
Switch statement found in org.universAAL.ri.gateway.communicator.service.impl.GatewayCommunicatorImpl.handleMessage(InputStream, OutputStream) where default case is missingSTYLESF_SWITCH_NO_DEFAULT464-472Medium
org.universAAL.ri.gateway.communicator.service.impl.GatewayCommunicatorImpl.handleMessage(InputStream, OutputStream) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR509Medium

org.universAAL.ri.gateway.communicator.service.impl.SecurityManager

BugCategoryDetailsLinePriority
Write to static field org.universAAL.ri.gateway.communicator.service.impl.SecurityManager.allowExportSecurityEntries from instance method org.universAAL.ri.gateway.communicator.service.impl.SecurityManager.setAllowExportSecurityEntries(Set)STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD100High
Write to static field org.universAAL.ri.gateway.communicator.service.impl.SecurityManager.allowImportSecurityEntries from instance method org.universAAL.ri.gateway.communicator.service.impl.SecurityManager.setAllowImportSecurityEntries(Set)STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD82High
Write to static field org.universAAL.ri.gateway.communicator.service.impl.SecurityManager.denyExportSecurityEntries from instance method org.universAAL.ri.gateway.communicator.service.impl.SecurityManager.setDenyExportSecurityEntries(Set)STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD109High
Write to static field org.universAAL.ri.gateway.communicator.service.impl.SecurityManager.denyImportSecurityEntries from instance method org.universAAL.ri.gateway.communicator.service.impl.SecurityManager.setDenyImportSecurityEntries(Set)STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD91High

org.universAAL.ri.gateway.communicator.service.impl.SecurityUtils

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.universAAL.ri.gateway.communicator.service.impl.SecurityUtils.initialize(String): String.getBytes()I18NDM_DEFAULT_ENCODING42High
Write to static field org.universAAL.ri.gateway.communicator.service.impl.SecurityUtils.key from instance method org.universAAL.ri.gateway.communicator.service.impl.SecurityUtils.initialize(String)STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD42Medium

org.universAAL.ri.gateway.communicator.service.impl.SocketCommunicationHandler

BugCategoryDetailsLinePriority
Write to static field org.universAAL.ri.gateway.communicator.service.impl.SocketCommunicationHandler.PORT from instance method new org.universAAL.ri.gateway.communicator.service.impl.SocketCommunicationHandler(GatewayCommunicator)STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD64Medium

org.universAAL.ri.gateway.eimanager.impl.ExportInterceptorsComparator

BugCategoryDetailsLinePriority
org.universAAL.ri.gateway.eimanager.impl.ExportInterceptorsComparator implements Comparator but not SerializableBAD_PRACTICESE_COMPARATOR_SHOULD_BE_SERIALIZABLE27-31Medium

org.universAAL.ri.gateway.eimanager.impl.ExportManagerImpl

BugCategoryDetailsLinePriority
Read of unwritten field exportPremises in org.universAAL.ri.gateway.eimanager.impl.ExportManagerImpl.addExportPremise(ExportPremise)CORRECTNESSNP_UNWRITTEN_FIELD82Medium
Read of unwritten field exportPremises in org.universAAL.ri.gateway.eimanager.impl.ExportManagerImpl.removeExportPremise(ExportPremise)CORRECTNESSNP_UNWRITTEN_FIELD86Medium
new org.universAAL.ri.gateway.eimanager.impl.ExportManagerImpl(GatewayCommunicator) invokes Thread.start()MT_CORRECTNESSSC_START_IN_CTOR62Medium
Unread field: org.universAAL.ri.gateway.eimanager.impl.ExportManagerImpl.communicatorPERFORMANCEURF_UNREAD_FIELD56Medium
Unwritten field: org.universAAL.ri.gateway.eimanager.impl.ExportManagerImpl.exportPremisesCORRECTNESSUWF_UNWRITTEN_FIELD82Medium

org.universAAL.ri.gateway.eimanager.impl.ImportInterceptorsComparator

BugCategoryDetailsLinePriority
org.universAAL.ri.gateway.eimanager.impl.ImportInterceptorsComparator implements Comparator but not SerializableBAD_PRACTICESE_COMPARATOR_SHOULD_BE_SERIALIZABLE27-31Medium

org.universAAL.ri.gateway.eimanager.impl.ImportManagerImpl

BugCategoryDetailsLinePriority
Non-virtual method call in org.universAAL.ri.gateway.eimanager.impl.ImportManagerImpl.performInterceptorChainExecution(String, ImportRequest, EIOperationManager$Type) passes null for nonnull parameter of new org.universAAL.ri.gateway.eimanager.ImportEntry(String, BusMember, String, InternalImportOperation, boolean, String)CORRECTNESSNP_NULL_PARAM_DEREF_NONVIRTUAL179High
new org.universAAL.ri.gateway.eimanager.impl.ImportManagerImpl(GatewayCommunicator) invokes Thread.start()MT_CORRECTNESSSC_START_IN_CTOR79Medium
org.universAAL.ri.gateway.eimanager.impl.ImportManagerImpl.internalImportRemoteService(String, BusMember, String, String) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR220Medium

org.universAAL.ri.gateway.eimanager.impl.exporting.ExportedProxyManager

BugCategoryDetailsLinePriority
Switch statement found in org.universAAL.ri.gateway.eimanager.impl.exporting.ExportedProxyManager.registerProxies(ImportRequest) where default case is missingSTYLESF_SWITCH_NO_DEFAULT114-149Medium
Unread field: org.universAAL.ri.gateway.eimanager.impl.exporting.ExportedProxyManager.contextBusPERFORMANCEURF_UNREAD_FIELD72Medium
org.universAAL.ri.gateway.eimanager.impl.exporting.ExportedProxyManager.reloadServices() makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR217Medium

org.universAAL.ri.gateway.eimanager.impl.exporting.ProxyServiceCaller

BugCategoryDetailsLinePriority
Unread field: org.universAAL.ri.gateway.eimanager.impl.exporting.ProxyServiceCaller.serverNamespacePERFORMANCEURF_UNREAD_FIELD53Medium

org.universAAL.ri.gateway.eimanager.impl.exporting.ProxyUICaller

BugCategoryDetailsLinePriority
org.universAAL.ri.gateway.eimanager.impl.exporting.ProxyUICaller.getHandlerProfiles() may expose internal representation by returning ProxyUICaller.handlerProfilesMALICIOUS_CODEEI_EXPOSE_REP92Medium
new org.universAAL.ri.gateway.eimanager.impl.exporting.ProxyUICaller(ExportedProxyManager, String, ModuleContext, String, UIHandlerProfile[]) may expose internal representation by storing an externally mutable object into ProxyUICaller.handlerProfilesMALICIOUS_CODEEI_EXPOSE_REP244Medium
org.universAAL.ri.gateway.eimanager.impl.exporting.ProxyUICaller.setHandlerProfiles(UIHandlerProfile[]) may expose internal representation by storing an externally mutable object into ProxyUICaller.handlerProfilesMALICIOUS_CODEEI_EXPOSE_REP296Medium

org.universAAL.ri.gateway.eimanager.impl.importing.ImportRequest

BugCategoryDetailsLinePriority
org.universAAL.ri.gateway.eimanager.impl.importing.ImportRequest.getCpe() may expose internal representation by returning ImportRequest.cpeMALICIOUS_CODEEI_EXPOSE_REP92Medium
org.universAAL.ri.gateway.eimanager.impl.importing.ImportRequest.getSubjectURIs() may expose internal representation by returning ImportRequest.subjectURIMALICIOUS_CODEEI_EXPOSE_REP113Medium
org.universAAL.ri.gateway.eimanager.impl.importing.ImportRequest.setCpe(String[]) may expose internal representation by storing an externally mutable object into ImportRequest.cpeMALICIOUS_CODEEI_EXPOSE_REP296Medium
org.universAAL.ri.gateway.eimanager.impl.importing.ImportRequest.setSubjectURIs(String[]) may expose internal representation by storing an externally mutable object into ImportRequest.subjectURIMALICIOUS_CODEEI_EXPOSE_REP2117Medium

org.universAAL.ri.gateway.eimanager.impl.importing.ImportedProxyManager

BugCategoryDetailsLinePriority
Switch statement found in org.universAAL.ri.gateway.eimanager.impl.importing.ImportedProxyManager.registerProxies(InternalImportOperation) where default case is missingSTYLESF_SWITCH_NO_DEFAULT64-100Medium
org.universAAL.ri.gateway.eimanager.impl.importing.ImportedProxyManager.refreshProxy(ProxyRegistration) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR183Medium
org.universAAL.ri.gateway.eimanager.impl.importing.ImportedProxyManager.registerProxies(InternalImportOperation) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR69Medium

org.universAAL.ri.gateway.eimanager.impl.importing.InternalImportOperation

BugCategoryDetailsLinePriority
org.universAAL.ri.gateway.eimanager.impl.importing.InternalImportOperation.getUiHandlerProfiles() may expose internal representation by returning InternalImportOperation.uiHandlerProfileMALICIOUS_CODEEI_EXPOSE_REP78Medium
org.universAAL.ri.gateway.eimanager.impl.importing.InternalImportOperation.setUiHandlerProfiles(UIHandlerProfile[]) may expose internal representation by storing an externally mutable object into InternalImportOperation.uiHandlerProfileMALICIOUS_CODEEI_EXPOSE_REP282Medium

org.universAAL.ri.gateway.eimanager.impl.importing.ProxyContextPublisher

BugCategoryDetailsLinePriority
Read of unwritten field publisher in org.universAAL.ri.gateway.eimanager.impl.importing.ProxyContextPublisher.removeProxy()CORRECTNESSNP_UNWRITTEN_FIELD50Medium
Unwritten field: org.universAAL.ri.gateway.eimanager.impl.importing.ProxyContextPublisher.publisherCORRECTNESSUWF_UNWRITTEN_FIELD50Medium