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

Commit f6eb631

Browse files
committed
Reformat some code
1 parent be758eb commit f6eb631

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
.idea/*
66
!.idea/codeStyles/
7-
sample_client/.idea/*
87

98
# files for the dex VM
109
*.dex

owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/OwnCloudClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public void clearCredentials() {
103103
}
104104

105105
public int executeHttpMethod(HttpBaseMethod method) throws Exception {
106-
if(mSynchronizeRequests) {
106+
if (mSynchronizeRequests) {
107107
synchronized (mRequestMutex) {
108108
return saveExecuteHttpMethod(method);
109109
}
@@ -116,7 +116,7 @@ private int saveExecuteHttpMethod(HttpBaseMethod method) throws Exception {
116116
int repeatCounter = 0;
117117
int status;
118118

119-
if(mFollowRedirects) {
119+
if (mFollowRedirects) {
120120
method.setFollowRedirects(true);
121121
}
122122

@@ -139,7 +139,7 @@ private int saveExecuteHttpMethod(HttpBaseMethod method) throws Exception {
139139

140140
if (shouldConnectionValidatorBeCalled(method, status)) {
141141
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) {
143143
retry = true;
144144
method.setFollowRedirects(true);
145145
}

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import okhttp3.Cookie;
3232
import okhttp3.CookieJar;
3333
import okhttp3.HttpUrl;
34-
import okhttp3.Interceptor;
3534
import okhttp3.OkHttpClient;
3635
import okhttp3.Protocol;
3736
import okhttp3.TlsVersion;
@@ -61,7 +60,7 @@ public class HttpClient {
6160
private OkHttpClient mOkHttpClient = null;
6261

6362
protected HttpClient(Context context) {
64-
if(context == null) {
63+
if (context == null) {
6564
Timber.e("Context may not be NULL!");
6665
throw new NullPointerException("Context may not be NULL!");
6766
}

0 commit comments

Comments
 (0)