use String.format instead of awkward string construction
This commit is contained in:
parent
74aa7a5986
commit
ae0b6cfccb
1 changed files with 3 additions and 2 deletions
|
|
@ -171,8 +171,9 @@ class ShardSyncer {
|
|||
for (String id : inconsistentShardIds) {
|
||||
ids += " " + id;
|
||||
}
|
||||
throw new KinesisClientLibIOException(String.valueOf(inconsistentShardIds.size()) + " open child shards (" + ids + ") are inconsistent."
|
||||
+ "This can happen due to a race condition between describeStream and a reshard operation.");
|
||||
throw new KinesisClientLibIOException(String.format("%d open child shards (%s) are inconsistent. "
|
||||
+ "This can happen due to a race condition between describeStream and a reshard operation.",
|
||||
inconsistentShardIds.size(), ids));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue