Remove redundant throw clauses found by Studio
This commit is contained in:
parent
d2ac7e6eba
commit
2c16ffdefe
@ -271,8 +271,7 @@ public class App extends ValueObject implements Comparable<App> {
|
|||||||
initApkFromApkFile(context, this.installedApk, packageInfo, apkFile);
|
initApkFromApkFile(context, this.installedApk, packageInfo, apkFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setFromPackageInfo(PackageManager pm, PackageInfo packageInfo)
|
private void setFromPackageInfo(PackageManager pm, PackageInfo packageInfo) {
|
||||||
throws CertificateEncodingException, IOException, PackageManager.NameNotFoundException {
|
|
||||||
|
|
||||||
this.packageName = packageInfo.packageName;
|
this.packageName = packageInfo.packageName;
|
||||||
final String installerPackageName = pm.getInstallerPackageName(packageName);
|
final String installerPackageName = pm.getInstallerPackageName(packageName);
|
||||||
|
@ -4,12 +4,10 @@ import org.fdroid.fdroid.ProgressListener;
|
|||||||
import org.fdroid.fdroid.Utils;
|
import org.fdroid.fdroid.Utils;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileNotFoundException;
|
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.net.MalformedURLException;
|
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.util.Timer;
|
import java.util.Timer;
|
||||||
import java.util.TimerTask;
|
import java.util.TimerTask;
|
||||||
@ -46,8 +44,7 @@ public abstract class Downloader {
|
|||||||
|
|
||||||
protected abstract void close();
|
protected abstract void close();
|
||||||
|
|
||||||
Downloader(URL url, File destFile)
|
Downloader(URL url, File destFile) {
|
||||||
throws FileNotFoundException, MalformedURLException {
|
|
||||||
this.sourceUrl = url;
|
this.sourceUrl = url;
|
||||||
outputFile = destFile;
|
outputFile = destFile;
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ public class BluetoothConnection {
|
|||||||
private OutputStream output;
|
private OutputStream output;
|
||||||
private final BluetoothSocket socket;
|
private final BluetoothSocket socket;
|
||||||
|
|
||||||
public BluetoothConnection(BluetoothSocket socket) throws IOException {
|
public BluetoothConnection(BluetoothSocket socket) {
|
||||||
this.socket = socket;
|
this.socket = socket;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ public class BluetoothServer extends Thread {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private Response handleRequest(Request request) throws IOException {
|
private Response handleRequest(Request request) {
|
||||||
|
|
||||||
Utils.debugLog(TAG, "Received Bluetooth request from client, will process it now.");
|
Utils.debugLog(TAG, "Received Bluetooth request from client, will process it now.");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user