Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 85a3918

Browse files
theScrabiabelgardep
authored andcommitted
fix usage of debug interceptor
1 parent 7e507ab commit 85a3918

File tree

1 file changed

+2
-8
lines changed
  • owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/http

1 file changed

+2
-8
lines changed

owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/http/HttpClient.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import okhttp3.Cookie;
3232
import okhttp3.CookieJar;
3333
import okhttp3.HttpUrl;
34+
import okhttp3.Interceptor;
3435
import okhttp3.OkHttpClient;
3536
import okhttp3.Protocol;
3637
import okhttp3.TlsVersion;
@@ -58,7 +59,7 @@ public class HttpClient {
5859
private static Context sContext;
5960
private static HashMap<String, List<Cookie>> sCookieStore = new HashMap<>();
6061
private static LogInterceptor sLogInterceptor;
61-
private static DebugInterceptor sDebugInterceptor;
62+
private static Interceptor sDebugInterceptor;
6263

6364
public static OkHttpClient getOkHttpClient() {
6465
if (sOkHttpClient == null) {
@@ -131,13 +132,6 @@ public static LogInterceptor getLogInterceptor() {
131132
return sLogInterceptor;
132133
}
133134

134-
public static DebugInterceptor getDebugInterceptor() {
135-
if (sDebugInterceptor == null) {
136-
sDebugInterceptor = new DebugInterceptor();
137-
}
138-
return sDebugInterceptor;
139-
}
140-
141135
public static List<Cookie> getCookiesFromUrl(HttpUrl httpUrl) {
142136
return sCookieStore.get(httpUrl.host());
143137
}

0 commit comments

Comments
 (0)