summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/common/build.gradle4
-rw-r--r--net/common/src/main/java/de/danoeh/antennapod/net/common/NetworkUtils.java4
-rw-r--r--net/common/src/main/java/de/danoeh/antennapod/net/common/UriUtil.java4
-rw-r--r--net/download/service/src/main/java/de/danoeh/antennapod/net/download/service/episode/autodownload/APCleanupAlgorithm.java4
-rw-r--r--net/sync/gpoddernet/src/main/java/de/danoeh/antennapod/net/sync/gpoddernet/model/GpodnetPodcast.java15
5 files changed, 14 insertions, 17 deletions
diff --git a/net/common/build.gradle b/net/common/build.gradle
index 57b9f5f23..4d80916d2 100644
--- a/net/common/build.gradle
+++ b/net/common/build.gradle
@@ -6,6 +6,10 @@ apply from: "../../playFlavor.gradle"
android {
namespace "de.danoeh.antennapod.net.common"
+
+ lint {
+ disable 'StaticFieldLeak'
+ }
}
dependencies {
diff --git a/net/common/src/main/java/de/danoeh/antennapod/net/common/NetworkUtils.java b/net/common/src/main/java/de/danoeh/antennapod/net/common/NetworkUtils.java
index 179c4e13e..e0559c7ed 100644
--- a/net/common/src/main/java/de/danoeh/antennapod/net/common/NetworkUtils.java
+++ b/net/common/src/main/java/de/danoeh/antennapod/net/common/NetworkUtils.java
@@ -14,11 +14,9 @@ import java.util.regex.Pattern;
import de.danoeh.antennapod.storage.preferences.UserPreferences;
-public class NetworkUtils {
+public abstract class NetworkUtils {
private static final String REGEX_PATTERN_IP_ADDRESS = "([0-9]{1,3}[\\.]){3}[0-9]{1,3}";
- private NetworkUtils(){}
-
private static Context context;
public static void init(Context context) {
diff --git a/net/common/src/main/java/de/danoeh/antennapod/net/common/UriUtil.java b/net/common/src/main/java/de/danoeh/antennapod/net/common/UriUtil.java
index 63fc087d6..4199f63c8 100644
--- a/net/common/src/main/java/de/danoeh/antennapod/net/common/UriUtil.java
+++ b/net/common/src/main/java/de/danoeh/antennapod/net/common/UriUtil.java
@@ -8,9 +8,7 @@ import java.net.URL;
/**
* Utility methods for dealing with URL encoding.
*/
-public class UriUtil {
- private UriUtil() {}
-
+public abstract class UriUtil {
public static URI getURIFromRequestUrl(String source) {
// try without encoding the URI
try {
diff --git a/net/download/service/src/main/java/de/danoeh/antennapod/net/download/service/episode/autodownload/APCleanupAlgorithm.java b/net/download/service/src/main/java/de/danoeh/antennapod/net/download/service/episode/autodownload/APCleanupAlgorithm.java
index bc50c8c1f..d23becdbb 100644
--- a/net/download/service/src/main/java/de/danoeh/antennapod/net/download/service/episode/autodownload/APCleanupAlgorithm.java
+++ b/net/download/service/src/main/java/de/danoeh/antennapod/net/download/service/episode/autodownload/APCleanupAlgorithm.java
@@ -121,7 +121,9 @@ public class APCleanupAlgorithm extends EpisodeCleanupAlgorithm {
}
@VisibleForTesting
- public int getNumberOfHoursAfterPlayback() { return numberOfHoursAfterPlayback; }
+ public int getNumberOfHoursAfterPlayback() {
+ return numberOfHoursAfterPlayback;
+ }
private static Date minusHours(Date baseDate, int numberOfHours) {
Calendar cal = Calendar.getInstance();
diff --git a/net/sync/gpoddernet/src/main/java/de/danoeh/antennapod/net/sync/gpoddernet/model/GpodnetPodcast.java b/net/sync/gpoddernet/src/main/java/de/danoeh/antennapod/net/sync/gpoddernet/model/GpodnetPodcast.java
index f09ab1244..53af3b328 100644
--- a/net/sync/gpoddernet/src/main/java/de/danoeh/antennapod/net/sync/gpoddernet/model/GpodnetPodcast.java
+++ b/net/sync/gpoddernet/src/main/java/de/danoeh/antennapod/net/sync/gpoddernet/model/GpodnetPodcast.java
@@ -12,15 +12,8 @@ public class GpodnetPodcast {
private final String mygpoLink;
private final String author;
- public GpodnetPodcast(@NonNull String url,
- @NonNull String title,
- @NonNull String description,
- int subscribers,
- String logoUrl,
- String website,
- String mygpoLink,
- String author
- ) {
+ public GpodnetPodcast(@NonNull String url, @NonNull String title, @NonNull String description, int subscribers,
+ String logoUrl, String website, String mygpoLink, String author) {
this.url = url;
this.title = title;
this.description = description;
@@ -63,7 +56,9 @@ public class GpodnetPodcast {
return website;
}
- public String getAuthor() { return author; }
+ public String getAuthor() {
+ return author;
+ }
public String getMygpoLink() {
return mygpoLink;