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();