Fixed major sonar issue in ApiPerms.java

No match.