clean up.

This commit is contained in:
dxl
2020-04-13 09:27:34 +08:00
parent 845b5d14c8
commit 86e2e9c5cf
2 changed files with 6 additions and 2 deletions
@@ -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;
}
}
+1 -1
View File
@@ -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);
}