The following document contains the results of SpotBugs
SpotBugs Version is 4.5.0
Threshold is medium
Effort is default
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
10 | 6 | 0 | 0 |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Null passed for non-null parameter of org.springframework.validation.Errors.rejectValue(String, String, String) in org.oxerr.spring.security.wechat.samples.helloworld.WeChatPropertiesValidator.validate(Object, Errors) | CORRECTNESS | NP_NONNULL_PARAM_VIOLATION | 25 | High |
Null passed for non-null parameter of org.springframework.validation.Errors.rejectValue(String, String, String) in org.oxerr.spring.security.wechat.samples.helloworld.WeChatPropertiesValidator.validate(Object, Errors) | CORRECTNESS | NP_NONNULL_PARAM_VIOLATION | 29 | High |
Null passed for non-null parameter of org.springframework.validation.Errors.rejectValue(String, String, String) in org.oxerr.spring.security.wechat.samples.helloworld.WeChatPropertiesValidator.validate(Object, Errors) | CORRECTNESS | NP_NONNULL_PARAM_VIOLATION | 33 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.oxerr.spring.security.wechat.samples.helloworld.service.impl.WeChatServiceImpl(WeChatProperties, OauthApi) may expose internal representation by storing an externally mutable object into WeChatServiceImpl.weChatProperties | MALICIOUS_CODE | EI_EXPOSE_REP2 | 31 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.oxerr.spring.security.wechat.samples.helloworld.service.impl.WeChatUserDetails.getUser() may expose internal representation by returning WeChatUserDetails.user | MALICIOUS_CODE | EI_EXPOSE_REP | 22 | Medium |
new org.oxerr.spring.security.wechat.samples.helloworld.service.impl.WeChatUserDetails(User) may expose internal representation by storing an externally mutable object into WeChatUserDetails.user | MALICIOUS_CODE | EI_EXPOSE_REP2 | 18 | Medium |