SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.5.0

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
10 6 0 0

Files

Class Bugs
org.oxerr.spring.security.wechat.samples.helloworld.WeChatPropertiesValidator 3
org.oxerr.spring.security.wechat.samples.helloworld.service.impl.WeChatServiceImpl 1
org.oxerr.spring.security.wechat.samples.helloworld.service.impl.WeChatUserDetails 2

org.oxerr.spring.security.wechat.samples.helloworld.WeChatPropertiesValidator

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

org.oxerr.spring.security.wechat.samples.helloworld.service.impl.WeChatServiceImpl

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

org.oxerr.spring.security.wechat.samples.helloworld.service.impl.WeChatUserDetails

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