Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Fixed typo in auth successful method
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Slack committed Oct 20, 2015
1 parent 7291d32 commit 37b2c48
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion MIGRATING_TO_V-3.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ if (result.isSuccessful()) {
return;
}
//is true if isSuccessful() == true and the response status is not 401
result.isAuthorizationSuccesful();
result.isAuthorizationSuccessful();
//allows access to the response object which you can get the request and JSON string response from
result.getResponse();
//gets the rate limit DataSift returned with the response, use it to keep track of usage
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/datasift/client/DataSiftAPIResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public Throwable failureCause() {
}

@Override
public boolean isAuthorizationSuccesful() {
public boolean isAuthorizationSuccessful() {
return isSuccessful() && response.status() != 401;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Throwable failureCause() {
}

@Override
public boolean isAuthorizationSuccesful() {
public boolean isAuthorizationSuccessful() {
return isSuccessful() && response.status() != 401;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/datasift/client/DataSiftResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public interface DataSiftResult {
/**
* @return True if the response status is anything but a 401 Unauthorized
*/
boolean isAuthorizationSuccesful();
boolean isAuthorizationSuccessful();

/**
* @return if {@link #isSuccessful()} == false then this returns the error message DataSift returned or null if true
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/datasift/client/examples/CoreApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static void main(String... args) throws InterruptedException {
return;
}
//is true if isSuccessful() == true and the response status is not 401
result.isAuthorizationSuccesful();
result.isAuthorizationSuccessful();
//allows access to the response object which you can list the request and JSON string response from
result.getResponse();
//gets the rate limit DataSift returned with the response, use it to keep track of usage
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/datasift/client/examples/ODPApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private ODPApi() throws InterruptedException {
}

// Check for authorization failure
batchResult.isAuthorizationSuccesful();
batchResult.isAuthorizationSuccessful();
// Access the low level response object
batchResult.getResponse();

Expand Down

0 comments on commit 37b2c48

Please sign in to comment.