we are using the String.matches() method that call Pattern.compile(regex) every time:
...
if (identifier.matches("^\".+\"$")) {
identifier = identifier.substring(1, len - 1);
}
...
We already have cached Patterns for other cases in this class, we should do the same here.
...
if (identifier.matches("^\".+\"$")) {
identifier = identifier.substring(1, len - 1);
}
...
We already have cached Patterns for other cases in this class, we should do the same here.