Javadoc doesn't match with function signature