[jinterface] cleanup code according to new style