refactor java style file