Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
1.2.4
-
None
-
any
Description
WildcardPermission.setParts does this:
if (wildcardString == null || wildcardString.trim().length() == 0)
Unknown macro: { throw new IllegalArgumentException("Wildcard string cannot be null or empty. Make sure permission strings are properly formatted."); }wildcardString = wildcardString.trim();
Given the frequency of the use of this method it would be better to capture the first trim().