Skip to content

Commit 57190cd

Browse files
committed
Fixes comments
1 parent 435fa89 commit 57190cd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/org/xerial/snappy/SnappyLoader.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ static synchronized SnappyNativeAPI load() {
181181
}
182182

183183
isLoaded = true;
184-
// Look up SnappyNative, injected to the root classloder, using reflection to order to avoid the initialization of SnappyNative class in this context class loader.
184+
// Look up SnappyNative, injected to the root classloder, using reflection in order to avoid the initialization of SnappyNative class in this context class loader.
185185
api = (SnappyNativeAPI) Class.forName("org.xerial.snappy.SnappyNative").newInstance();
186186
}
187187
catch (Exception e) {
@@ -192,6 +192,11 @@ static synchronized SnappyNativeAPI load() {
192192
return api;
193193
}
194194

195+
/**
196+
* Inject SnappyNativeLoader class to the root class loader
197+
*
198+
* @return native code loader class initialized in the root class loader
199+
*/
195200
private static Class< ? > injectSnappyNativeLoader() {
196201

197202
try {

0 commit comments

Comments
 (0)