Merge "Fix formatting string in PolicyVersionUpgrade"
This commit is contained in:
committed by
Android (Google) Code Review
commit
b9764480f4
@@ -20,6 +20,7 @@ java_defaults {
|
||||
"-Xep:NullTernary:ERROR",
|
||||
"-Xep:TryFailThrowable:ERROR",
|
||||
"-Xep:HashtableContains:ERROR",
|
||||
"-Xep:FormatString:ERROR",
|
||||
// NOTE: only enable to generate local patchfiles
|
||||
// "-XepPatchChecks:refaster:frameworks/base/errorprone/refaster/EfficientXml.java.refaster",
|
||||
// "-XepPatchLocation:/tmp/refaster/",
|
||||
|
||||
@@ -184,7 +184,7 @@ public class PolicyVersionUpgrader {
|
||||
Files.write(file.toPath(), versionBytes);
|
||||
versionFile.commit();
|
||||
} catch (IOException e) {
|
||||
Slog.e(LOG_TAG, String.format("Writing version %d failed: %s", version), e);
|
||||
Slog.e(LOG_TAG, String.format("Writing version %d failed", version), e);
|
||||
versionFile.rollback();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user