This repository was archived by the owner on Mar 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
owncloudComLibrary/src/main/java/com/owncloud/android/lib/common Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 4
4
5
5
.idea /*
6
6
! .idea /codeStyles /
7
- sample_client /.idea /*
8
7
9
8
# files for the dex VM
10
9
* .dex
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public void clearCredentials() {
103
103
}
104
104
105
105
public int executeHttpMethod (HttpBaseMethod method ) throws Exception {
106
- if (mSynchronizeRequests ) {
106
+ if (mSynchronizeRequests ) {
107
107
synchronized (mRequestMutex ) {
108
108
return saveExecuteHttpMethod (method );
109
109
}
@@ -116,7 +116,7 @@ private int saveExecuteHttpMethod(HttpBaseMethod method) throws Exception {
116
116
int repeatCounter = 0 ;
117
117
int status ;
118
118
119
- if (mFollowRedirects ) {
119
+ if (mFollowRedirects ) {
120
120
method .setFollowRedirects (true );
121
121
}
122
122
@@ -139,7 +139,7 @@ private int saveExecuteHttpMethod(HttpBaseMethod method) throws Exception {
139
139
140
140
if (shouldConnectionValidatorBeCalled (method , status )) {
141
141
retry = mConnectionValidator .validate (this , mSingleSessionManager , getContext ()); // retry on success fail on no success
142
- } else if (method .getFollowPermanentRedirects () && status == HTTP_MOVED_PERMANENTLY ) {
142
+ } else if (method .getFollowPermanentRedirects () && status == HTTP_MOVED_PERMANENTLY ) {
143
143
retry = true ;
144
144
method .setFollowRedirects (true );
145
145
}
Original file line number Diff line number Diff line change 31
31
import okhttp3 .Cookie ;
32
32
import okhttp3 .CookieJar ;
33
33
import okhttp3 .HttpUrl ;
34
- import okhttp3 .Interceptor ;
35
34
import okhttp3 .OkHttpClient ;
36
35
import okhttp3 .Protocol ;
37
36
import okhttp3 .TlsVersion ;
@@ -61,7 +60,7 @@ public class HttpClient {
61
60
private OkHttpClient mOkHttpClient = null ;
62
61
63
62
protected HttpClient (Context context ) {
64
- if (context == null ) {
63
+ if (context == null ) {
65
64
Timber .e ("Context may not be NULL!" );
66
65
throw new NullPointerException ("Context may not be NULL!" );
67
66
}
You can’t perform that action at this time.
0 commit comments