public synchronized void dispose() { if (handle != 0L) { XgboostJNI.XGBoosterFree(handle); handle = 0; } }