Format some imports using fix_imports.py

Unfortunately this tool isn't smart enough to deal with the assertThat
situation (which has two static imports of a function with the same name).

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=172000753
This commit is contained in:
mcilwain 2017-10-12 13:09:59 -07:00 committed by jianglai
parent 326cf698e0
commit 05f6ad80ab
20 changed files with 35 additions and 49 deletions

View file

@ -15,6 +15,7 @@
package google.registry.tools;
import static com.google.common.base.Preconditions.checkArgument;
import google.registry.tools.LevelDbLogReader.ChunkType;
class LevelDbUtil {
@ -73,7 +74,9 @@ class LevelDbUtil {
*/
static int addRecord(byte[] bytes, int pos, ChunkType type, byte[] data) {
checkArgument(
data.length < MAX_RECORD, "Record length (%d) > max record size (%d)", data.length,
data.length < MAX_RECORD,
"Record length (%s) > max record size (%s)",
data.length,
MAX_RECORD);
pos = addRecordHeader(bytes, pos, type, data.length);