Fixed compile warnings and errors in ItemAttr.java

Static functions cannot use private fields and don't need a final
modifier, they are static!