SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.8.6

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
18 18 0 0

Files

Class Bugs
org.europa.together.domain.acl.AccountDO 5
org.europa.together.domain.acl.LoginDO 7
org.europa.together.domain.acl.PermissionDO 6

org.europa.together.domain.acl.AccountDO

Bug Category Details Line Priority
org.europa.together.domain.acl.AccountDO.getRole() may expose internal representation by returning AccountDO.role MALICIOUS_CODE EI_EXPOSE_REP 191 Medium
org.europa.together.domain.acl.AccountDO.isDeactivated() may expose internal representation by returning AccountDO.deactivated MALICIOUS_CODE EI_EXPOSE_REP 242 Medium
org.europa.together.domain.acl.AccountDO.isRegistered() may expose internal representation by returning AccountDO.registered MALICIOUS_CODE EI_EXPOSE_REP 209 Medium
org.europa.together.domain.acl.AccountDO.isVerified() may expose internal representation by returning AccountDO.verified MALICIOUS_CODE EI_EXPOSE_REP 225 Medium
org.europa.together.domain.acl.AccountDO.setRole(RolesDO) may expose internal representation by storing an externally mutable object into AccountDO.role MALICIOUS_CODE EI_EXPOSE_REP2 200 Medium

org.europa.together.domain.acl.LoginDO

Bug Category Details Line Priority
org.europa.together.domain.acl.LoginDO.getAccount() may expose internal representation by returning LoginDO.account MALICIOUS_CODE EI_EXPOSE_REP 151 Medium
org.europa.together.domain.acl.LoginDO.getLogin() may expose internal representation by returning LoginDO.login MALICIOUS_CODE EI_EXPOSE_REP 169 Medium
org.europa.together.domain.acl.LoginDO.getLogout() may expose internal representation by returning LoginDO.logout MALICIOUS_CODE EI_EXPOSE_REP 242 Medium
new org.europa.together.domain.acl.LoginDO(AccountDO) may expose internal representation by storing an externally mutable object into LoginDO.account MALICIOUS_CODE EI_EXPOSE_REP2 86 Medium
org.europa.together.domain.acl.LoginDO.setAccount(AccountDO) may expose internal representation by storing an externally mutable object into LoginDO.account MALICIOUS_CODE EI_EXPOSE_REP2 160 Medium
org.europa.together.domain.acl.LoginDO.setLogin(Date) may expose internal representation by storing an externally mutable object into LoginDO.login MALICIOUS_CODE EI_EXPOSE_REP2 178 Medium
org.europa.together.domain.acl.LoginDO.setLogout(Date) may expose internal representation by storing an externally mutable object into LoginDO.logout MALICIOUS_CODE EI_EXPOSE_REP2 251 Medium

org.europa.together.domain.acl.PermissionDO

Bug Category Details Line Priority
org.europa.together.domain.acl.PermissionDO.getResource() may expose internal representation by returning PermissionDO.resource MALICIOUS_CODE EI_EXPOSE_REP 150 Medium
org.europa.together.domain.acl.PermissionDO.getRole() may expose internal representation by returning PermissionDO.role MALICIOUS_CODE EI_EXPOSE_REP 168 Medium
new org.europa.together.domain.acl.PermissionDO(RolesDO, ResourcesDO) may expose internal representation by storing an externally mutable object into PermissionDO.resource MALICIOUS_CODE EI_EXPOSE_REP2 86 Medium
new org.europa.together.domain.acl.PermissionDO(RolesDO, ResourcesDO) may expose internal representation by storing an externally mutable object into PermissionDO.role MALICIOUS_CODE EI_EXPOSE_REP2 85 Medium
org.europa.together.domain.acl.PermissionDO.setResource(ResourcesDO) may expose internal representation by storing an externally mutable object into PermissionDO.resource MALICIOUS_CODE EI_EXPOSE_REP2 159 Medium
org.europa.together.domain.acl.PermissionDO.setRole(RolesDO) may expose internal representation by storing an externally mutable object into PermissionDO.role MALICIOUS_CODE EI_EXPOSE_REP2 178 Medium