Closed xenoterracide closed 8 years ago
@xenoterracide Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
@xenoterracide Thank you for signing the Contributor License Agreement!
Thanks for your patch to make the value final. It does need to be visible to both classes. This could arguably be made package private, but not critical for the guide.
The short is that if somehow there were a malicious class on the classpath having the field be public and static would allow any class to change it. It would be better if the tutorial didn't use this. I don't actually think the constant needs to be public.
from findbugs