mirror of
https://github.com/xerial/snappy-java.git
synced 2025-07-16 10:34:33 +02:00
remove unnecessary flag
This commit is contained in:
parent
3e533b4e7d
commit
331e7ef10b
@ -81,7 +81,6 @@ import java.util.Properties;
|
|||||||
*/
|
*/
|
||||||
public class SnappyLoader
|
public class SnappyLoader
|
||||||
{
|
{
|
||||||
private static boolean isInitialized = false;
|
|
||||||
private static boolean isLoaded = false;
|
private static boolean isLoaded = false;
|
||||||
private static SnappyNativeAPI api = null;
|
private static SnappyNativeAPI api = null;
|
||||||
|
|
||||||
@ -149,11 +148,9 @@ public class SnappyLoader
|
|||||||
*/
|
*/
|
||||||
static synchronized SnappyNativeAPI load() {
|
static synchronized SnappyNativeAPI load() {
|
||||||
|
|
||||||
if (isInitialized)
|
if (api != null)
|
||||||
return api;
|
return api;
|
||||||
|
|
||||||
isInitialized = true;
|
|
||||||
|
|
||||||
final String nativeLoaderClassName = "org.xerial.snappy.SnappyNativeLoader";
|
final String nativeLoaderClassName = "org.xerial.snappy.SnappyNativeLoader";
|
||||||
boolean useNativeCodeInjection = !Boolean.parseBoolean(System.getProperty(KEY_SNAPPY_DISABLE_NATIVE_INJECTION,
|
boolean useNativeCodeInjection = !Boolean.parseBoolean(System.getProperty(KEY_SNAPPY_DISABLE_NATIVE_INJECTION,
|
||||||
"false"));
|
"false"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user