Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Painless: Only allow Painless type names to be the same as the equivalent Java class. #27264
Updated the WhitelistLoader to reflect the changes along with current whitelist resource files.
When defining a Painless struct, the line will now be
If we want the short name of any class the line will now be
This simplifies Painless whitelists in a significant way moving forward as we can now infer a Painless type name from a Java Class object. Also enforces a 1 to 1 Painless type to Java class naturally.
One high level suggestion: I think most of the time we will use the simple class names. So instead of needing to add