diff --git a/communication/src/main/java/cn/rrg/com/UniversalDriver.java b/communication/src/main/java/cn/rrg/com/UniversalDriver.java index 442b0b46..cfc1e0d7 100644 --- a/communication/src/main/java/cn/rrg/com/UniversalDriver.java +++ b/communication/src/main/java/cn/rrg/com/UniversalDriver.java @@ -1,6 +1,7 @@ package cn.rrg.com; import java.io.IOException; +import java.nio.ByteBuffer; import cn.dxl.common.posixio.Communication; @@ -67,7 +68,10 @@ public class UniversalDriver implements Communication { * @param data the new data from write fun * @return your process ret */ - public int onWriteData(byte[] data, int offset, int length, int timeout) { + public int onWriteData(byte[] data, + int offset, + int length, + int timeout) throws IOException { return data.length; } } diff --git a/libnfc_pn53x/src/main/cpp/check/check.c b/libnfc_pn53x/src/main/cpp/check/check.c index eaadc2f5..3dd40b9f 100644 --- a/libnfc_pn53x/src/main/cpp/check/check.c +++ b/libnfc_pn53x/src/main/cpp/check/check.c @@ -241,7 +241,7 @@ jboolean testNested(JNIEnv *env, jobject instance) { return true; } -jboolean testHardnested(JNIEnv *env, jobject instance, nfc_device *pnd, nfc_target_info *target) { +jboolean testHardnested(JNIEnv *env, jobject instance) { return (jboolean) !testNested(env, instance); }