A Pattern is compiled from a String literal or constant and is not stored in a static final reference.
String.matches, String.split, String.replaceAll or String.replaceFirst are invoked with a String literal or constant. In this case, the code should be refactored to use a java.util.regex.Pattern while respecting the previous rule.