Skip to content

Commit

Permalink
Renamed method to doesObjectExist as InBucket is implied by param…
Browse files Browse the repository at this point in the history
…eter name
  • Loading branch information
mateusz-lisik committed Jan 27, 2016
1 parent e0b69af commit 3f60b0a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -921,7 +921,7 @@ public void deleteBucketReplicationConfiguration(DeleteBucketReplicationConfigur
}

@Override
public boolean doesObjectExistInBucket(String bucketName, String objectName)
public boolean doesObjectExist(String bucketName, String objectName)
throws AmazonServiceException, AmazonClientException {
throw new UnsupportedOperationException("Extend AbstractAmazonS3 to provide an implementation");
}
Expand Down
Expand Up @@ -4505,7 +4505,7 @@ void deleteBucketReplicationConfiguration(String bucketName)
* If any errors are encountered in the client while making the
* request or handling the response.
*/
boolean doesObjectExistInBucket(String bucketName, String objectName)
boolean doesObjectExist(String bucketName, String objectName)
throws AmazonServiceException, AmazonClientException;

}
Expand Up @@ -4077,7 +4077,7 @@ private String getBucketRegionViaHeadRequest(String bucketName) {
}

@Override
public boolean doesObjectExistInBucket(String bucketName, String objectName) throws AmazonServiceException, AmazonClientException {
public boolean doesObjectExist(String bucketName, String objectName) throws AmazonServiceException, AmazonClientException {
try {
getObjectMetadata(bucketName, objectName);
} catch (AmazonS3Exception e) {
Expand Down

0 comments on commit 3f60b0a

Please sign in to comment.