From 1ad69adf4e7588d262a7214413c55cafdcefae34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Fri, 23 Oct 2015 12:58:51 +0200 Subject: [PATCH] Explicit catch ignores to make linters happy --- .../src/org/fdroid/fdroid/net/AsyncDownloaderFromAndroid.java | 1 + F-Droid/src/org/fdroid/fdroid/net/HttpDownloader.java | 1 + .../src/org/fdroid/fdroid/net/bluetooth/httpish/Request.java | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/F-Droid/src/org/fdroid/fdroid/net/AsyncDownloaderFromAndroid.java b/F-Droid/src/org/fdroid/fdroid/net/AsyncDownloaderFromAndroid.java index 0cfef0d19..e2a009269 100644 --- a/F-Droid/src/org/fdroid/fdroid/net/AsyncDownloaderFromAndroid.java +++ b/F-Droid/src/org/fdroid/fdroid/net/AsyncDownloaderFromAndroid.java @@ -122,6 +122,7 @@ public class AsyncDownloaderFromAndroid implements AsyncDownloader { try { Thread.sleep(1000); } catch (Exception e) { + // ignore } sendProgress(getBytesRead(), getTotalBytes()); } diff --git a/F-Droid/src/org/fdroid/fdroid/net/HttpDownloader.java b/F-Droid/src/org/fdroid/fdroid/net/HttpDownloader.java index d2a58defc..3796b5d7e 100644 --- a/F-Droid/src/org/fdroid/fdroid/net/HttpDownloader.java +++ b/F-Droid/src/org/fdroid/fdroid/net/HttpDownloader.java @@ -169,6 +169,7 @@ public class HttpDownloader extends Downloader { if (stream != null) stream.close(); } catch (IOException e) { + // ignore } connection.disconnect(); diff --git a/F-Droid/src/org/fdroid/fdroid/net/bluetooth/httpish/Request.java b/F-Droid/src/org/fdroid/fdroid/net/bluetooth/httpish/Request.java index 61c6bb2ff..8ed354478 100644 --- a/F-Droid/src/org/fdroid/fdroid/net/bluetooth/httpish/Request.java +++ b/F-Droid/src/org/fdroid/fdroid/net/bluetooth/httpish/Request.java @@ -154,7 +154,9 @@ public final class Request { try { Thread.sleep(100); - } catch (Exception e) { } + } catch (Exception e) { + // ignore + } } return line;