summaryrefslogtreecommitdiff
path: root/net/common
diff options
context:
space:
mode:
Diffstat (limited to 'net/common')
-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
3 files changed, 6 insertions, 6 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 {