Pruned code in Java mode

https://github.com/whyi/SketchFormer/issues/26