mark length final for #31
fix #31
switch to Java 7 #32
use Java 7 #32