Fix bad format in validator message.

(cherry picked from commit 6ddb799a95b9f4fd2fd210154127f3ae8254b688)
This commit is contained in:
Harald Kuhr 2022-05-29 14:55:17 +02:00
parent 9213da3184
commit aa82612765

View File

@ -81,7 +81,7 @@ class IIOInputStreamAdapter extends InputStream {
private IIOInputStreamAdapter(ImageInputStream pInput, long pLength, boolean pHasLength) {
Validate.notNull(pInput, "stream");
Validate.isTrue(!pHasLength || pLength >= 0, pLength, "length < 0: %f");
Validate.isTrue(!pHasLength || pLength >= 0, pLength, "length < 0: %d");
input = pInput;
left = pLength;