File tree Expand file tree Collapse file tree 4 files changed +61
-5
lines changed
main/java/software/amazon/awssdk/identity/spi
test/java/software/amazon/awssdk/identity/spi Expand file tree Collapse file tree 4 files changed +61
-5
lines changed Original file line number Diff line number Diff line change 44
44
<artifactId >utils</artifactId >
45
45
<version >${awsjavasdk.version} </version >
46
46
</dependency >
47
+ <dependency >
48
+ <groupId >org.junit.jupiter</groupId >
49
+ <artifactId >junit-jupiter</artifactId >
50
+ <scope >test</scope >
51
+ </dependency >
52
+ <dependency >
53
+ <groupId >nl.jqno.equalsverifier</groupId >
54
+ <artifactId >equalsverifier</artifactId >
55
+ <scope >test</scope >
56
+ </dependency >
47
57
</dependencies >
58
+
59
+ <build >
60
+ <plugins >
61
+ <plugin >
62
+ <groupId >org.apache.maven.plugins</groupId >
63
+ <artifactId >maven-jar-plugin</artifactId >
64
+ <configuration >
65
+ <archive >
66
+ <manifestEntries >
67
+ <Automatic-Module-Name >software.amazon.awssdk.identity.spi</Automatic-Module-Name >
68
+ </manifestEntries >
69
+ </archive >
70
+ </configuration >
71
+ </plugin >
72
+ </plugins >
73
+ </build >
74
+
48
75
</project >
Original file line number Diff line number Diff line change 17
17
18
18
import java .util .Objects ;
19
19
import software .amazon .awssdk .annotations .Immutable ;
20
- import software .amazon .awssdk .annotations .SdkProtectedApi ;
20
+ import software .amazon .awssdk .annotations .SdkPublicApi ;
21
21
import software .amazon .awssdk .annotations .ThreadSafe ;
22
22
import software .amazon .awssdk .utils .ToString ;
23
23
import software .amazon .awssdk .utils .Validate ;
26
26
* A strongly-typed property for input to an {@link IdentityProvider}.
27
27
* @param <T> The type of the attribute.
28
28
*/
29
- @ SdkProtectedApi
29
+ @ SdkPublicApi
30
30
@ Immutable
31
31
@ ThreadSafe
32
32
public final class IdentityProperty <T > {
Original file line number Diff line number Diff line change 19
19
import java .util .Map ;
20
20
import java .util .Objects ;
21
21
import software .amazon .awssdk .annotations .Immutable ;
22
- import software .amazon .awssdk .annotations .SdkProtectedApi ;
22
+ import software .amazon .awssdk .annotations .SdkPublicApi ;
23
23
import software .amazon .awssdk .annotations .ThreadSafe ;
24
24
import software .amazon .awssdk .utils .ToString ;
25
25
import software .amazon .awssdk .utils .builder .SdkBuilder ;
32
32
*
33
33
* @see IdentityProvider
34
34
*/
35
- @ SdkProtectedApi
35
+ @ SdkPublicApi
36
36
@ Immutable
37
37
@ ThreadSafe
38
38
public final class ResolveIdentityRequest {
39
39
40
- private final Map <IdentityProperty <?>, ? > properties ;
40
+ private final Map <IdentityProperty <?>, Object > properties ;
41
41
42
42
private ResolveIdentityRequest (Map <IdentityProperty <?>, Object > properties ) {
43
43
this .properties = new HashMap <>(properties );
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License").
5
+ * You may not use this file except in compliance with the License.
6
+ * A copy of the License is located at
7
+ *
8
+ * http://aws.amazon.com/apache2.0
9
+ *
10
+ * or in the "license" file accompanying this file. This file is distributed
11
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12
+ * express or implied. See the License for the specific language governing
13
+ * permissions and limitations under the License.
14
+ */
15
+
16
+ package software .amazon .awssdk .identity .spi ;
17
+
18
+ import nl .jqno .equalsverifier .EqualsVerifier ;
19
+ import org .junit .jupiter .api .Test ;
20
+
21
+ public class IdentityPropertyTest {
22
+
23
+ @ Test
24
+ public void equalsHashcode () {
25
+ EqualsVerifier .forClass (IdentityProperty .class )
26
+ .withNonnullFields ("clazz" , "name" )
27
+ .verify ();
28
+ }
29
+ }
You can’t perform that action at this time.
0 commit comments