update java.snippet and xml.snippet