diff --git a/src/test/java/com/google/devtools/build/lib/util/DependencySetTest.java b/src/test/java/com/google/devtools/build/lib/util/DependencySetTest.java index e43ce98cb06d24..e6d3f6a08919cb 100644 --- a/src/test/java/com/google/devtools/build/lib/util/DependencySetTest.java +++ b/src/test/java/com/google/devtools/build/lib/util/DependencySetTest.java @@ -249,7 +249,7 @@ public void writeSet() throws Exception { Path outfile = scratch.resolve(filename); Path dotd = scratch.resolve("/usr/local/blah/blah/genhello/hello.d"); - FileSystemUtils.createDirectoryAndParents(dotd.getParentDirectory()); + dotd.getParentDirectory().createDirectoryAndParents(); depSet1.write(outfile, ".d"); String dotdContents = new String(FileSystemUtils.readContentAsLatin1(dotd)); @@ -273,7 +273,7 @@ public void writeReadSet() throws Exception { depSet1.setOutputFileName(filename); Path dotd = scratch.resolve(filename); - FileSystemUtils.createDirectoryAndParents(dotd.getParentDirectory()); + dotd.getParentDirectory().createDirectoryAndParents(); depSet1.write(dotd, ".d"); DependencySet depSet2 = newDependencySet().read(dotd);