Project compliance changed, Lock check function added

To fit Li Su’s update, the project compliance is now JRE 1.7