Raise minimum Java version to 6, upgrade H2. #24

This commit is contained in:
akwizgran
2015-12-02 14:59:51 +00:00
parent 2b12f0d438
commit 427efdc7d6
11 changed files with 27 additions and 33 deletions

View File

@@ -85,18 +85,18 @@ class InsecureBluetooth {
setCloseHandler.invoke(socket, mHandler, handle);
return socket;
} catch (NoSuchMethodException e) {
throw new IOException(e.toString());
throw new IOException(e);
} catch (NoSuchFieldException e) {
throw new IOException(e.toString());
throw new IOException(e);
} catch (IllegalAccessException e) {
throw new IOException(e.toString());
throw new IOException(e);
} catch (InstantiationException e) {
throw new IOException(e.toString());
throw new IOException(e);
} catch (InvocationTargetException e) {
if (e.getCause() instanceof IOException) {
throw (IOException) e.getCause();
} else {
throw new IOException(e.toString());
throw new IOException(e);
}
}
}
@@ -122,18 +122,18 @@ class InsecureBluetooth {
}
return socket;
} catch (NoSuchMethodException e) {
throw new IOException(e.toString());
throw new IOException(e);
} catch (NoSuchFieldException e) {
throw new IOException(e.toString());
throw new IOException(e);
} catch (IllegalAccessException e) {
throw new IOException(e.toString());
throw new IOException(e);
} catch (InstantiationException e) {
throw new IOException(e.toString());
throw new IOException(e);
} catch (InvocationTargetException e) {
if (e.getCause() instanceof IOException) {
throw (IOException) e.getCause();
} else {
throw new IOException(e.toString());
throw new IOException(e);
}
}
}
@@ -155,16 +155,16 @@ class InsecureBluetooth {
return constructor.newInstance(TYPE_RFCOMM, -1, false, true, device,
-1, new ParcelUuid(uuid));
} catch (NoSuchMethodException e) {
throw new IOException(e.toString());
throw new IOException(e);
} catch (IllegalAccessException e) {
throw new IOException(e.toString());
throw new IOException(e);
} catch (InstantiationException e) {
throw new IOException(e.toString());
throw new IOException(e);
} catch (InvocationTargetException e) {
if (e.getCause() instanceof IOException) {
throw (IOException) e.getCause();
} else {
throw new IOException(e.toString());
throw new IOException(e);
}
}
}