Skip to content

Commit aa6afee

Browse files
authored
Minor updates to PR #3773 (#3814)
* Simplify hashCode and equals for ResolveIdentityRequest * Fix doc link about AWS access keys To match with updates to `AwsCredentials` in PR 3773.
1 parent ac838e0 commit aa6afee

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

core/auth/src/main/java/software/amazon/awssdk/auth/credentials/AwsBasicCredentials.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
import software.amazon.awssdk.utils.Validate;
2626

2727
/**
28-
* Provides access to the AWS credentials used for accessing AWS services: AWS access key ID and secret access key. These
29-
* credentials are used to securely sign requests to AWS services.
28+
* Provides access to the AWS credentials used for accessing services: AWS access key ID and secret access key. These
29+
* credentials are used to securely sign requests to services (e.g., AWS services) that use them for authentication.
3030
*
3131
* <p>For more details on AWS access keys, see:
32-
* <a href="http://docs.amazonwebservices.com/AWSSecurityCredentials/1.0/AboutAWSCredentials.html#AccessKeys">
33-
* http://docs.amazonwebservices.com/AWSSecurityCredentials/1.0/AboutAWSCredentials.html#AccessKeys</a></p>
32+
* <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">
33+
* https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys</a></p>
3434
*
3535
* @see AwsCredentialsProvider
3636
*/

core/identity-spi/src/main/java/software/amazon/awssdk/identity/spi/ResolveIdentityRequest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,13 @@ public boolean equals(Object o) {
6666
if (o == null || getClass() != o.getClass()) {
6767
return false;
6868
}
69-
7069
ResolveIdentityRequest that = (ResolveIdentityRequest) o;
71-
return Objects.equals(properties, that.properties);
70+
return properties.equals(that.properties);
7271
}
7372

7473
@Override
7574
public int hashCode() {
76-
return 31 + Objects.hashCode(properties);
75+
return Objects.hashCode(properties);
7776
}
7877

7978
public static final class Builder implements SdkBuilder<Builder, ResolveIdentityRequest> {

0 commit comments

Comments
 (0)