Fix unused format argument (#8345)

This commit is contained in:
Benedict Jin 2019-08-21 03:45:46 +08:00 committed by Clint Wylie
parent ffcbd1ecb8
commit 5e35500e0e
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ public final class Rows
throw new ParseException(e, "Unable to parse value[%s] for field[%s]", inputValue, name); throw new ParseException(e, "Unable to parse value[%s] for field[%s]", inputValue, name);
} }
} else { } else {
throw new ParseException("Unknown type[%s] for field", inputValue.getClass(), inputValue); throw new ParseException("Unknown type[%s] for field[%s]", inputValue.getClass(), name);
} }
} }

View File

@ -117,7 +117,7 @@ public class JsonIterator<T> implements Iterator<T>, Closeable
} }
final JsonToken nextToken = jp.nextToken(); final JsonToken nextToken = jp.nextToken();
if (nextToken != JsonToken.START_ARRAY) { if (nextToken != JsonToken.START_ARRAY) {
throw new IAE("First token should be START_ARRAY", jp.getCurrentToken()); throw new IAE("First token should be START_ARRAY, but it is actually [%s]", jp.getCurrentToken());
} else { } else {
jp.nextToken(); jp.nextToken();
objectCodec = jp.getCodec(); objectCodec = jp.getCodec();