Skip to content

Commit

Permalink
[xgb] Fix xgb intern to close replaced array
Browse files Browse the repository at this point in the history
  • Loading branch information
ewan0x79 committed Dec 10, 2024
1 parent ddfae0e commit 4b9d4ae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ public void intern(NDArray replaced) {
throw new IllegalArgumentException("The replaced NDArray cannot be null.");
}
if (!(replaced instanceof XgbNDArray)) {
throw new IllegalArgumentException("The replaced NDArray must be an instance of XgbNDArray.");
throw new IllegalArgumentException(
"The replaced NDArray must be an instance of XgbNDArray.");
}
XgbNDArray array = (XgbNDArray) replaced;

Expand Down

0 comments on commit 4b9d4ae

Please sign in to comment.