File tree Expand file tree Collapse file tree
codegen/src/main/java/software/amazon/awssdk/codegen/poet/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4343import software .amazon .awssdk .codegen .model .intermediate .IntermediateModel ;
4444import software .amazon .awssdk .codegen .model .intermediate .OperationModel ;
4545import software .amazon .awssdk .codegen .model .intermediate .Protocol ;
46- import software .amazon .awssdk .codegen .poet .ClassSpec ;
4746import software .amazon .awssdk .codegen .poet .PoetExtension ;
4847import software .amazon .awssdk .codegen .poet .PoetUtils ;
4948import software .amazon .awssdk .codegen .poet .client .specs .Ec2ProtocolSpec ;
6463import software .amazon .awssdk .metrics .NoOpMetricCollector ;
6564import software .amazon .awssdk .utils .Logger ;
6665
67- //TODO Make SyncClientClass extend SyncClientInterface (similar to what we do in AsyncClientClass)
68- public class SyncClientClass implements ClassSpec {
66+ public class SyncClientClass extends SyncClientInterface {
6967
7068 private final IntermediateModel model ;
7169 private final PoetExtension poetExtensions ;
7270 private final ClassName className ;
7371 private final ProtocolSpec protocolSpec ;
7472
7573 public SyncClientClass (GeneratorTaskParams taskParams ) {
74+ super (taskParams .getModel ());
7675 this .model = taskParams .getModel ();
7776 this .poetExtensions = taskParams .getPoetExtensions ();
7877 this .className = poetExtensions .getClientClass (model .getMetadata ().getSyncClient ());
Original file line number Diff line number Diff line change 6262import software .amazon .awssdk .regions .ServiceMetadataProvider ;
6363import software .amazon .awssdk .regions .providers .DefaultAwsRegionProviderChain ;
6464
65- public final class SyncClientInterface implements ClassSpec {
65+ public class SyncClientInterface implements ClassSpec {
6666
6767 private final IntermediateModel model ;
6868 private final ClassName className ;
You can’t perform that action at this time.
0 commit comments