Fix method name and javadoc