Skip to content

Commit d99da0e

Browse files
Code Duplication remove
Signed-off-by: Alexander-Ger-Reich
1 parent ea2f89e commit d99da0e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

library/src/main/java/com/owncloud/android/lib/common/OwnCloudClientManagerFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ public static int getProxyPort() {
4848
return proxyPort;
4949
}
5050

51-
public static void setHASH_check(boolean status) {
51+
public static void setHASHcheck(boolean status) {
5252
hash_check_enable = status;
5353
}
5454

55-
public static boolean getHASH_check() {
55+
public static boolean getHASHcheck() {
5656
return hash_check_enable;
5757
}
5858
}

library/src/main/java/com/owncloud/android/lib/resources/files/ChunkedFileUploadRemoteOperation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ private RemoteOperationResult uploadChunk(OwnCloudClient client, Chunk chunk) th
302302
putMethod.addRequestHeader(E2E_TOKEN, token);
303303
}
304304

305-
if (OwnCloudClientManagerFactory.getHASH_check()) {
305+
if (OwnCloudClientManagerFactory.getHASHcheck()) {
306306
try (RandomAccessFile hashRaf = new RandomAccessFile(file, "r")) {
307307
MessageDigest md = MessageDigest.getInstance("SHA-256");
308308

library/src/main/java/com/owncloud/android/lib/resources/files/DownloadFileRemoteOperation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private int downloadFile(OwnCloudClient client, File targetFile) throws IOExcept
146146
}
147147

148148
if (transferred == totalToTransfer || transferEncoding) {
149-
if (OwnCloudClientManagerFactory.getHASH_check()){
149+
if (OwnCloudClientManagerFactory.getHASHcheck()){
150150
Header hashHeader = getMethod.getResponseHeader("X-Content-Hash");
151151
String expectedHash = hashHeader != null ? hashHeader.getValue() : null;
152152
if (expectedHash != null) {

library/src/main/java/com/owncloud/android/lib/resources/files/FileUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class FileUtils {
2525
public static final String PATH_SEPARATOR = "/";
2626

2727
public static String getHASHfromFile(Object thi, File f, String digestAlgorithm) {
28-
if (OwnCloudClientManagerFactory.getHASH_check()) {
28+
if (OwnCloudClientManagerFactory.getHASHcheck()) {
2929
try {
3030
MessageDigest md = MessageDigest.getInstance(digestAlgorithm);
3131

0 commit comments

Comments
 (0)