GetDiff: Fix placeholder in Preconditions checks
Preconditions.check* only support %s in placeholders, not full format string syntax. Change-Id: I2cb6fbf7a8e5ed66a1087181631e223a236ffc36
This commit is contained in:
@@ -146,9 +146,9 @@ public class GetDiff implements RestReadView<FileResource> {
|
||||
content.addCommon(edit.getBeginA());
|
||||
|
||||
checkState(content.nextA == edit.getBeginA(),
|
||||
"nextA = %d; want %d", content.nextA, edit.getBeginA());
|
||||
"nextA = %s; want %s", content.nextA, edit.getBeginA());
|
||||
checkState(content.nextB == edit.getBeginB(),
|
||||
"nextB = %d; want %d", content.nextB, edit.getBeginB());
|
||||
"nextB = %s; want %s", content.nextB, edit.getBeginB());
|
||||
switch (edit.getType()) {
|
||||
case DELETE:
|
||||
case INSERT:
|
||||
|
||||
Reference in New Issue
Block a user