Update AbstractSimilarity.java