From 8301b5ef2fb45c936db41ed0fe6413be301ed8a8 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Thu, 8 Jul 2021 09:39:39 +0200 Subject: [PATCH] UpdateShareRemoteOperation returns correct type Signed-off-by: tobiasKaminsky --- .../lib/resources/shares/UpdateShareRemoteOperation.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/owncloud/android/lib/resources/shares/UpdateShareRemoteOperation.java b/src/main/java/com/owncloud/android/lib/resources/shares/UpdateShareRemoteOperation.java index bd080e411..08cdd55ac 100644 --- a/src/main/java/com/owncloud/android/lib/resources/shares/UpdateShareRemoteOperation.java +++ b/src/main/java/com/owncloud/android/lib/resources/shares/UpdateShareRemoteOperation.java @@ -157,8 +157,8 @@ public void setNote(String note) { } @Override - protected RemoteOperationResult run(OwnCloudClient client) { - RemoteOperationResult result = null; + protected RemoteOperationResult> run(OwnCloudClient client) { + RemoteOperationResult> result = null; int status; /// prepare array of parameters to update @@ -232,7 +232,7 @@ protected RemoteOperationResult run(OwnCloudClient client) { result = parser.parse(response); } else { - result = new RemoteOperationResult(false, put); + result = new RemoteOperationResult<>(false, put); } if (!result.isSuccess()) { break; @@ -240,7 +240,7 @@ protected RemoteOperationResult run(OwnCloudClient client) { } } catch (Exception e) { - result = new RemoteOperationResult(e); + result = new RemoteOperationResult<>(e); Log_OC.e(TAG, "Exception while updating remote share ", e); if (put != null) { put.releaseConnection();