Skip to content

Commit

Permalink
Eliminate all external dependencies from SoLoaderShim.
Browse files Browse the repository at this point in the history
  • Loading branch information
tyronen committed Jun 4, 2015
1 parent c50ff41 commit ea38fa4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

package com.facebook.common.soloader;

import com.facebook.common.internal.Preconditions;

/**
* A shim for loading shared libraries that the app can override.
*/
Expand Down Expand Up @@ -43,7 +41,9 @@ public void loadLibrary(String libraryName) {
* @param handler the new handler
*/
public static void setHandler(Handler handler) {
Preconditions.checkNotNull(handler);
if (handler == null) {
throw new NullPointerException("Handler cannot be null");
}
sHandler = handler;
}

Expand Down

0 comments on commit ea38fa4

Please sign in to comment.