remove unnecessary flag
This commit is contained in:
parent
3e533b4e7d
commit
331e7ef10b
|
@ -81,7 +81,6 @@ import java.util.Properties;
|
|||
*/
|
||||
public class SnappyLoader
|
||||
{
|
||||
private static boolean isInitialized = false;
|
||||
private static boolean isLoaded = false;
|
||||
private static SnappyNativeAPI api = null;
|
||||
|
||||
|
@ -149,11 +148,9 @@ public class SnappyLoader
|
|||
*/
|
||||
static synchronized SnappyNativeAPI load() {
|
||||
|
||||
if (isInitialized)
|
||||
if (api != null)
|
||||
return api;
|
||||
|
||||
isInitialized = true;
|
||||
|
||||
final String nativeLoaderClassName = "org.xerial.snappy.SnappyNativeLoader";
|
||||
boolean useNativeCodeInjection = !Boolean.parseBoolean(System.getProperty(KEY_SNAPPY_DISABLE_NATIVE_INJECTION,
|
||||
"false"));
|
||||
|
|
Loading…
Reference in New Issue