java interface public redundant