Update PatternValidator.java