Total java 5 compliance