**Is your feature request related to a problem? Please describe.** As I can see, the **spotbug plugin** hints some vulnerabilities, we consider it and make sure it is correct. <img width="696" alt="image" src="https://user-images.githubusercontent.com/13768484/154608549-46edbd50-7fc2-4b77-b513-cbf86557800a.png">