mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-167 simplified the map builder by making "file" very much an option parameter, is it not REQUIRED for all types of maps. Also updated the many of the TCP replication test to remove the user of file() as its simply not required for this in many cases.
This commit is contained in:
@@ -41,8 +41,8 @@ public class CHMTest5 {
|
||||
//// end of test
|
||||
|
||||
String chmPath = System.getProperty("java.io.tmpdir") + System.getProperty("file.separator") + "CHMTest5";
|
||||
ChronicleMap<String, CHMTest5Data> theSharedMap = builder
|
||||
.create(new File(chmPath));
|
||||
|
||||
ChronicleMap<String, CHMTest5Data> theSharedMap = builder.file(new File(chmPath)).create();
|
||||
|
||||
//Now get the shared data object, auto-creating if it's not there
|
||||
CHMTest5Data data = DataValueClasses.newDirectReference(CHMTest5Data.class);
|
||||
|
||||
Reference in New Issue
Block a user