diff options
author | 2018-07-27 12:46:46 -0700 | |
---|---|---|
committer | 2018-07-27 12:48:22 -0700 | |
commit | c9efd06dc6cfef400b288becf96aed1f5ba228b2 (patch) | |
tree | 076142a5a53677d2a3a7c22ffbee90a95f7becca /src/test/java/com/google/devtools/build/lib/vfs/PathFragmentTest.java | |
parent | 0ae0be980ebdd0e47bdc72b122d5074d4c3d0cb5 (diff) |
Automated rollback of commit 7e87730de985b7099b9b683571d58efdaab70890.
*** Reason for rollback ***
Go back to the default constructor - instead of requiring everywhere to know the correct hash function, we'll have the default rely on global state. It will make transition easier, even if it makes the origin of the hash less obvious.
*** Original change description ***
Remove default MD5 in most of Bazel's virtual filesystems.
This forces the ex-default to be explicit in a lot of tests, but I'd rather that than have the risk of implicit md5-use in production code.
To keep this CL smaller, do not remove the default from UnixFS quite yet.
RELNOTES: None.
PiperOrigin-RevId: 206358838
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/vfs/PathFragmentTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/vfs/PathFragmentTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/vfs/PathFragmentTest.java b/src/test/java/com/google/devtools/build/lib/vfs/PathFragmentTest.java index 20deec04c3..78986e0f5e 100644 --- a/src/test/java/com/google/devtools/build/lib/vfs/PathFragmentTest.java +++ b/src/test/java/com/google/devtools/build/lib/vfs/PathFragmentTest.java @@ -40,7 +40,7 @@ public class PathFragmentTest { @Test public void testEqualsAndHashCode() { - InMemoryFileSystem filesystem = new InMemoryFileSystem(DigestHashFunction.MD5); + InMemoryFileSystem filesystem = new InMemoryFileSystem(); new EqualsTester() .addEqualityGroup( |