Modify a small mistake.
Update for Java 7.