Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit df99208a authored by Andy Scherzinger's avatar Andy Scherzinger Committed by GitHub
Browse files

Merge pull request #198 from nextcloud/fixLint

fixed lint warnings / errors
parents 306980a4 235a5e7c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -60,8 +60,8 @@ android {
        abortOnError false
        htmlReport true
        htmlOutput file("$project.buildDir/reports/lint/lint.html")
        disable 'MissingTranslation'
    }

    defaultConfig {
        minSdkVersion 14
        targetSdkVersion 28

lint.xml

0 → 100644
+6 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<lint>
    <issue id="InvalidPackage">
        <ignore path="**/jackrabbit-webdav-2.12.6.jar" />
    </issue>
</lint>

sample_client/lint.xml

0 → 100644
+6 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<lint>
    <issue id="InvalidPackage">
        <ignore path="**/jackrabbit-webdav-2.12.6.jar" />
    </issue>
</lint>
+1 −1
Original line number Diff line number Diff line
DO NOT TOUCH; GENERATED BY DRONE
      <span class="mdl-layout-title">Lint Report: 2 errors and 13 warnings</span>
      <span class="mdl-layout-title">Lint Report: No errors or warnings</span>
+12 −11
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@ import org.apache.commons.httpclient.params.HttpParams;

import java.io.IOException;
import java.io.InputStream;
import java.util.Locale;

public class OwnCloudClient extends HttpClient {
	
@@ -383,13 +384,14 @@ public class OwnCloudClient extends HttpClient {

	private void logCookiesAtRequest(Header[] headers, String when) {
        int counter = 0;
        for (int i=0; i<headers.length; i++) {
        	if (headers[i].getName().toLowerCase().equals("cookie")) {
        for (Header header : headers) {
            if ("cookie".equals(header.getName().toLowerCase(Locale.US))) {
                Log_OC.d(TAG + " #" + mInstanceNumber,
                        "Cookies at request (" + when + ") (" + counter++ + "): " +
        						headers[i].getValue());
                                header.getValue());
            }
        }

        if (counter == 0) {
            Log_OC.d(TAG + " #" + mInstanceNumber, "No cookie at request (" + when + ")");
        }
@@ -414,10 +416,9 @@ public class OwnCloudClient extends HttpClient {

	private void logSetCookiesAtResponse(Header[] headers) {
        int counter = 0;
        for (int i=0; i<headers.length; i++) {
        	if (headers[i].getName().toLowerCase().equals("set-cookie")) {
        		Log_OC.d(TAG + " #" + mInstanceNumber, 
        				"Set-Cookie (" + counter++ + "): " + headers[i].getValue());
        for (Header header : headers) {
            if ("set-cookie".equals(header.getName().toLowerCase(Locale.US))) {
                Log_OC.d(TAG + " #" + mInstanceNumber, "Set-Cookie (" + counter++ + "): " + header.getValue());
            }
        }
        if (counter == 0) {
Loading