Java compiler compliance with java8
Added a BSPatch java implementation