Small optimzation for Java 7.