From 57190cd4ab3a062865902a2cc9c0ad026f0ecd3c Mon Sep 17 00:00:00 2001 From: "Taro L. Saito" Date: Tue, 23 Aug 2011 10:42:12 +0900 Subject: [PATCH] Fixes comments --- src/main/java/org/xerial/snappy/SnappyLoader.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/xerial/snappy/SnappyLoader.java b/src/main/java/org/xerial/snappy/SnappyLoader.java index b0dfffa..a5dd2db 100755 --- a/src/main/java/org/xerial/snappy/SnappyLoader.java +++ b/src/main/java/org/xerial/snappy/SnappyLoader.java @@ -181,7 +181,7 @@ public class SnappyLoader } isLoaded = true; - // Look up SnappyNative, injected to the root classloder, using reflection to order to avoid the initialization of SnappyNative class in this context class loader. + // Look up SnappyNative, injected to the root classloder, using reflection in order to avoid the initialization of SnappyNative class in this context class loader. api = (SnappyNativeAPI) Class.forName("org.xerial.snappy.SnappyNative").newInstance(); } catch (Exception e) { @@ -192,6 +192,11 @@ public class SnappyLoader return api; } + /** + * Inject SnappyNativeLoader class to the root class loader + * + * @return native code loader class initialized in the root class loader + */ private static Class< ? > injectSnappyNativeLoader() { try {