File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
codegen/src/main/java/software/amazon/awssdk/codegen/poet/client Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 30
30
import software .amazon .awssdk .codegen .model .intermediate .OperationModel ;
31
31
import software .amazon .awssdk .codegen .model .intermediate .ShapeModel ;
32
32
import software .amazon .awssdk .codegen .poet .PoetExtensions ;
33
+ import software .amazon .awssdk .codegen .poet .PoetUtils ;
33
34
import software .amazon .awssdk .core .ApiName ;
34
35
import software .amazon .awssdk .core .http .HttpResponseHandler ;
35
36
import software .amazon .awssdk .core .signer .Signer ;
@@ -166,13 +167,9 @@ static CodeBlock callApplySignerOverrideMethod(OperationModel opModel) {
166
167
ShapeModel inputShape = opModel .getInputShape ();
167
168
168
169
if (inputShape .getRequestSignerClassFqcn () != null ) {
169
- try {
170
- code .addStatement ("$1L = applySignerOverride($1L, $2T.create())" ,
171
- opModel .getInput ().getVariableName (),
172
- Class .forName (inputShape .getRequestSignerClassFqcn ()));
173
- } catch (ClassNotFoundException e ) {
174
- throw new RuntimeException (e );
175
- }
170
+ code .addStatement ("$1L = applySignerOverride($1L, $2T.create())" ,
171
+ opModel .getInput ().getVariableName (),
172
+ PoetUtils .classNameFromFqcn (inputShape .getRequestSignerClassFqcn ()));
176
173
}
177
174
178
175
return code .build ();
You can’t perform that action at this time.
0 commit comments