fixed Java 1.5 code
fixed warnings
#8: fixed invalid cache key