From 7e911cba92f21d7edde00e33699712ae06f34e82 Mon Sep 17 00:00:00 2001 From: Michael Berry Date: Tue, 3 Dec 2019 10:31:34 +0000 Subject: [PATCH] Update README.md Use `createOrOpen()` instead of deprecated `make()` method --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 972b13432..ca2af9b5d 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Hello world: ```java //import org.mapdb.* DB db = DBMaker.memoryDB().make(); -ConcurrentMap map = db.hashMap("map").make(); +ConcurrentMap map = db.hashMap("map").createOrOpen(); map.put("something", "here"); ``` @@ -61,4 +61,4 @@ Longer unit tests might require more memory. Use this to increase heap memory as By default unit tests are executed in 3 threads. Thread count is controlled by `-DtestThreadCount=3` property -On machine with limited memory you can change fork mode so unit test consume less RAM, but run longer: `-DtestReuseForks=false` \ No newline at end of file +On machine with limited memory you can change fork mode so unit test consume less RAM, but run longer: `-DtestReuseForks=false`