Update javadoc and remove duplication on put for ints.