From ef915118b691a1a21b78071eba41fb91b8de393a Mon Sep 17 00:00:00 2001 From: John Scancella Date: Thu, 18 Jan 2018 08:20:26 -0500 Subject: [PATCH] Fixing documentation example since creating a bag takes a list of algorithms --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 700b1a2a8..6b5d2e3bc 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ to follow modern Java practices and will require some changes to existing code: Path folder = Paths.get("FolderYouWantToBag"); StandardSupportedAlgorithms algorithm = StandardSupportedAlgorithms.MD5; boolean includeHiddenFiles = false; -Bag bag = BagCreator.bagInPlace(folder, algorithm, includeHiddenFiles); +Bag bag = BagCreator.bagInPlace(folder, Arrays.asList(algorithm), includeHiddenFiles); ``` ##### Read an existing bag (version 0.93 and higher)