Closed lt72 closed 10 years ago
example: FolderOperations.java
public ListenableFuture<Folder> copy(String destinationId) { final SettableFuture<Folder> result = SettableFuture.create(); java.util.Map<String, Object> map = new java.util.HashMap<String, Object>(); map.put("DestinationId", destinationId);
<<<<<<<<<<<<<<<<<< eliminate this ListenableFuture<byte[]> future = oDataExecute("Copy", serializeToJsonByteArray(map, getResolver()), HttpVerb.POST); addEntityResultCallback(result,future,getResolver(),Folder.class);
return result; } public ListenableFuture<Folder> move(String destinationId) { final SettableFuture<Folder> result = SettableFuture.create(); java.util.Map<String, Object> map = new java.util.HashMap<String, Object>(); map.put("DestinationId", destinationId);
<<<<<<<<<<<<<<<<<<<<<< eliminate this ListenableFuture<byte[]> future = oDataExecute("Move", serializeToJsonByteArray(map, getResolver()), HttpVerb.POST); addEntityResultCallback(result,future,getResolver(),Folder.class);
return result; }
I converted in many places tabs to spaces to preserve spaces, removed unnecessary spaces in some classes. If I messed anything, we can reopen this.
example: FolderOperations.java
<<<<<<<<<<<<<<<<<< eliminate this ListenableFuture<byte[]> future = oDataExecute("Copy", serializeToJsonByteArray(map, getResolver()), HttpVerb.POST); addEntityResultCallback(result,future,getResolver(),Folder.class);
<<<<<<<<<<<<<<<<<<<<<< eliminate this ListenableFuture<byte[]> future = oDataExecute("Move", serializeToJsonByteArray(map, getResolver()), HttpVerb.POST); addEntityResultCallback(result,future,getResolver(),Folder.class);