Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public String then(Task<ParseUser> task) throws Exception {
}

@Override
public Task<Void> logoutAsync() {
public Task<Void> logOutAsync() {
return taskQueue.enqueue(new Continuation<Void, Task<Void>>() {
@Override
public Task<Void> then(Task<Void> toAwait) throws Exception {
Expand Down
8 changes: 4 additions & 4 deletions Parse/src/main/java/com/parse/ParseCurrentUserController.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
extends ParseObjectCurrentController<ParseUser> {

/**
* Get the persisted current ParseUser
* Gets the persisted current ParseUser.
* @param shouldAutoCreateUser
* @return
*/
Expand All @@ -28,14 +28,14 @@
Task<Void> setIfNeededAsync(ParseUser user);

/**
* Get the session token of the persisted current ParseUser
* Gets the session token of the persisted current ParseUser.
* @return
*/
Task<String> getCurrentSessionTokenAsync();

/**
* Logout the current ParseUser
* Logs out the current ParseUser.
* @return
*/
Task<Void> logoutAsync();
Task<Void> logOutAsync();
}
2 changes: 1 addition & 1 deletion Parse/src/main/java/com/parse/ParseUser.java
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ private static Task<Void> saveCurrentUserAsync(ParseUser user) {
* @return A Task that is resolved when logging out completes.
*/
public static Task<Void> logOutInBackground() {
return getCurrentUserController().logoutAsync();
return getCurrentUserController().logOutAsync();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public void testLogOutAsyncWithDeleteInDiskCurrentUserSuccess() throws Exception
when(currentUser.logOutAsync()).thenReturn(Task.<Void>forResult(null));
controller.currentUser = currentUser;

ParseTaskUtils.wait(controller.logoutAsync());
ParseTaskUtils.wait(controller.logOutAsync());

// Make sure currentUser.logout() is called
verify(currentUser, times(1)).logOutAsync();
Expand All @@ -316,7 +316,7 @@ public void testLogOutAsyncWithDeleteInDiskCurrentUserFailure() throws Exception
CachedCurrentUserController controller =
new CachedCurrentUserController(store);

ParseTaskUtils.wait(controller.logoutAsync());
ParseTaskUtils.wait(controller.logOutAsync());

// Make sure controller state is correct
assertNull(controller.currentUser);
Expand Down