File tree Expand file tree Collapse file tree 6 files changed +13
-14
lines changed
main/java/software/amazon/awssdk/codegen/poet/client
test/resources/software/amazon/awssdk/codegen/poet/client
core/aws-core/src/main/java/software/amazon/awssdk/awscore
test/sdk-benchmarks/src/main/java/software/amazon/awssdk/benchmark/enhanced/dynamodb Expand file tree Collapse file tree 6 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 16
16
package software .amazon .awssdk .codegen .poet .client ;
17
17
18
18
import static java .util .stream .Collectors .toList ;
19
- import static javax .lang .model .element .Modifier .ABSTRACT ;
20
19
import static javax .lang .model .element .Modifier .DEFAULT ;
21
20
import static javax .lang .model .element .Modifier .FINAL ;
22
21
import static javax .lang .model .element .Modifier .PUBLIC ;
@@ -495,7 +494,8 @@ protected MethodSpec utilitiesMethod() {
495
494
protected MethodSpec serviceClientConfigMethod () {
496
495
return MethodSpec .methodBuilder ("serviceClientConfiguration" )
497
496
.addAnnotation (Override .class )
498
- .addModifiers (PUBLIC , ABSTRACT )
497
+ .addModifiers (PUBLIC , DEFAULT )
498
+ .addStatement ("throw new $T()" , UnsupportedOperationException .class )
499
499
.returns (new PoetExtension (model ).getServiceConfigClass ())
500
500
.build ();
501
501
}
Original file line number Diff line number Diff line change 17
17
18
18
import static java .util .stream .Collectors .toCollection ;
19
19
import static java .util .stream .Collectors .toList ;
20
- import static javax .lang .model .element .Modifier .ABSTRACT ;
21
20
import static javax .lang .model .element .Modifier .DEFAULT ;
22
21
import static javax .lang .model .element .Modifier .FINAL ;
23
22
import static javax .lang .model .element .Modifier .PUBLIC ;
@@ -534,7 +533,8 @@ protected MethodSpec utilitiesMethod() {
534
533
protected MethodSpec serviceClientConfigMethod () {
535
534
return MethodSpec .methodBuilder ("serviceClientConfiguration" )
536
535
.addAnnotation (Override .class )
537
- .addModifiers (PUBLIC , ABSTRACT )
536
+ .addModifiers (PUBLIC , DEFAULT )
537
+ .addStatement ("throw new $T()" , UnsupportedOperationException .class )
538
538
.returns (new PoetExtension (model ).getServiceConfigClass ())
539
539
.build ();
540
540
}
Original file line number Diff line number Diff line change @@ -1743,7 +1743,9 @@ default CompletableFuture<StreamingOutputOperationResponse> streamingOutputOpera
1743
1743
}
1744
1744
1745
1745
@ Override
1746
- JsonServiceClientConfiguration serviceClientConfiguration ();
1746
+ default JsonServiceClientConfiguration serviceClientConfiguration () {
1747
+ throw new UnsupportedOperationException ();
1748
+ }
1747
1749
1748
1750
/**
1749
1751
* Create a {@link JsonAsyncClient} with the region loaded from the
Original file line number Diff line number Diff line change @@ -1684,5 +1684,7 @@ static ServiceMetadata serviceMetadata() {
1684
1684
}
1685
1685
1686
1686
@ Override
1687
- JsonServiceClientConfiguration serviceClientConfiguration ();
1687
+ default JsonServiceClientConfiguration serviceClientConfiguration () {
1688
+ throw new UnsupportedOperationException ();
1689
+ }
1688
1690
}
Original file line number Diff line number Diff line change 27
27
public interface AwsClient extends SdkClient {
28
28
29
29
@ Override
30
- AwsServiceClientConfiguration serviceClientConfiguration ();
30
+ default AwsServiceClientConfiguration serviceClientConfiguration () {
31
+ throw new UnsupportedOperationException ();
32
+ }
31
33
}
Original file line number Diff line number Diff line change 17
17
18
18
import org .openjdk .jmh .infra .Blackhole ;
19
19
import software .amazon .awssdk .services .dynamodb .DynamoDbClient ;
20
- import software .amazon .awssdk .services .dynamodb .DynamoDbServiceClientConfiguration ;
21
20
22
21
abstract class V2TestDynamoDbBaseClient implements DynamoDbClient {
23
22
protected final Blackhole bh ;
@@ -34,10 +33,4 @@ public String serviceName() {
34
33
@ Override
35
34
public void close () {
36
35
}
37
-
38
- @ Override
39
- public DynamoDbServiceClientConfiguration serviceClientConfiguration () {
40
- return null ;
41
- }
42
-
43
36
}
You can’t perform that action at this time.
0 commit comments