Update pattern.java