fusesource / leveldbjni

A Java Native Interface to LevelDB
BSD 3-Clause "New" or "Revised" License
535 stars 145 forks source link

Use Static Instances #103

Open belugabehr opened 4 years ago

belugabehr commented 4 years ago

JniDB.java

return get(key, new ReadOptions()); write(updates, new WriteOptions());

Since these option objects are used in an immutable way, just create a single instance of both instead of instantiating each call.