FORGE-1005 Improved the Javadoc for the createHashCodeAndEquals method.

Also added checks to prevent static fields from being used in the generated methods.