1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Merge pull request #203 from hannesa2/ApplySomeLintsFixes

apply some Lint fixes
This commit is contained in:
David González Verdugo 2019-02-11 07:43:42 +00:00 committed by GitHub
commit 490fbde496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View File

@ -2,7 +2,6 @@ buildscript {
repositories { repositories {
google() google()
jcenter() jcenter()
google()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.3.0' classpath 'com.android.tools.build:gradle:3.3.0'

View File

@ -61,12 +61,11 @@ public class OwnCloudClient extends HttpClient {
private static final String TAG = OwnCloudClient.class.getSimpleName(); private static final String TAG = OwnCloudClient.class.getSimpleName();
private static final int MAX_REDIRECTIONS_COUNT = 3; private static final int MAX_REDIRECTIONS_COUNT = 3;
private static final int MAX_REPEAT_COUNT_WITH_FRESH_CREDENTIALS = 1; private static final int MAX_REPEAT_COUNT_WITH_FRESH_CREDENTIALS = 1;
private static final String PARAM_PROTOCOL_VERSION = "http.protocol.version";
private static byte[] sExhaustBuffer = new byte[1024]; private static byte[] sExhaustBuffer = new byte[1024];
private static int sIntanceCounter = 0; private static int sIntanceCounter = 0;
private OwnCloudCredentials mCredentials = null; private OwnCloudCredentials mCredentials = null;
private int mInstanceNumber = 0; private int mInstanceNumber;
private Uri mBaseUri; private Uri mBaseUri;
private OwnCloudVersion mVersion = null; private OwnCloudVersion mVersion = null;
private OwnCloudAccount mAccount; private OwnCloudAccount mAccount;
@ -330,16 +329,16 @@ public class OwnCloudClient extends HttpClient {
} }
public String getCookiesString() { public String getCookiesString() {
String cookiesString = ""; StringBuilder cookiesString = new StringBuilder();
List<Cookie> cookieList = getCookiesFromUrl(HttpUrl.parse(mBaseUri.toString())); List<Cookie> cookieList = getCookiesFromUrl(HttpUrl.parse(mBaseUri.toString()));
if (cookieList != null) { if (cookieList != null) {
for (Cookie cookie : cookieList) { for (Cookie cookie : cookieList) {
cookiesString += cookie.toString() + ";"; cookiesString.append(cookie.toString()).append(";");
} }
} }
return cookiesString; return cookiesString.toString();
} }
public void setCookiesForCurrentAccount(List<Cookie> cookies) { public void setCookiesForCurrentAccount(List<Cookie> cookies) {