mirror of
https://github.com/google/nomulus.git
synced 2025-05-09 16:28:21 +02:00
Fix two deprecated uses of Files methods
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=146363008
This commit is contained in:
parent
5d2b83ffe7
commit
a3baa58cad
1 changed files with 2 additions and 2 deletions
|
@ -329,8 +329,8 @@ public final class AppEngineRule extends ExternalResource {
|
|||
helper = null;
|
||||
// Test that the datastore didn't need any indexes we don't have listed in our index file.
|
||||
try {
|
||||
Set<String> autoIndexes = getIndexXmlStrings(Files.toString(
|
||||
new File(temporaryFolder.getRoot(), "datastore-indexes-auto.xml"), UTF_8));
|
||||
Set<String> autoIndexes = getIndexXmlStrings(Files.asCharSource(
|
||||
new File(temporaryFolder.getRoot(), "datastore-indexes-auto.xml"), UTF_8).read());
|
||||
Set<String> missingIndexes = Sets.difference(autoIndexes, MANUAL_INDEXES);
|
||||
if (!missingIndexes.isEmpty()) {
|
||||
assert_().fail("Missing indexes:\n%s", Joiner.on('\n').join(missingIndexes));
|
||||
|
|
Loading…
Add table
Reference in a new issue