android:fix import error

This commit is contained in:
pengfei.zhou 2020-02-28 14:23:03 +08:00 committed by osborn
parent 06133bca9e
commit 35944dc2cb

View File

@ -6,7 +6,6 @@ import com.github.pengfeizhou.jscore.JavaFunction;
import com.github.pengfeizhou.jscore.JavaValue; import com.github.pengfeizhou.jscore.JavaValue;
import org.greenrobot.eventbus.EventBus; import org.greenrobot.eventbus.EventBus;
import org.jetbrains.annotations.NotNull;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONException; import org.json.JSONException;
import org.json.JSONObject; import org.json.JSONObject;
@ -64,7 +63,7 @@ public class RemoteJSExecutor {
} }
@Override @Override
public void onMessage(@NotNull WebSocket webSocket, @NotNull String text) { public void onMessage(WebSocket webSocket, String text) {
try { try {
JSONObject jsonObject = new JSONObject(text); JSONObject jsonObject = new JSONObject(text);
String cmd = jsonObject.optString("cmd"); String cmd = jsonObject.optString("cmd");