Update javadocs to make query immutability more explicit