3030import software .amazon .awssdk .codegen .model .intermediate .OperationModel ;
3131import software .amazon .awssdk .codegen .model .intermediate .ShapeModel ;
3232import software .amazon .awssdk .codegen .model .service .PaginatorDefinition ;
33- import software .amazon .awssdk .utils .Lazy ;
3433import software .amazon .awssdk .utils .Pair ;
3534import software .amazon .awssdk .utils .StringUtils ;
3635
3938 */
4039abstract class OperationDocProvider {
4140
42- private static final Lazy <ExampleMetadataProvider > EXAMPLE_PROVIDER =
43- new Lazy <>(() -> ExampleMetadataProvider .getInstance (EXAMPLE_META_PATH ));
44-
4541 /**
4642 * Doc string for {@link java.nio.file.Path} parameter in simple method overload for streaming input operations.
4743 */
@@ -58,6 +54,9 @@ abstract class OperationDocProvider {
5854 "this method will throw an exception. If the file is not writable by the current user then " +
5955 "an exception will be thrown. " ;
6056
57+ private static final ExampleMetadataProvider EXAMPLE_PROVIDER =
58+ ExampleMetadataProvider .getInstance (EXAMPLE_META_PATH );
59+
6160 protected final IntermediateModel model ;
6261 protected final OperationModel opModel ;
6362 protected final DocConfiguration config ;
@@ -94,7 +93,7 @@ String getDocs() {
9493 docBuilder .see (crosslink );
9594 }
9695
97- Optional <String > codeExampleLink = EXAMPLE_PROVIDER . getValue ()
96+ Optional <String > codeExampleLink = EXAMPLE_PROVIDER
9897 .createLinkToCodeExample (model .getMetadata (), opModel .getOperationName ());
9998 codeExampleLink .ifPresent (docBuilder ::see );
10099 return docBuilder .build ().replace ("$" , "$" );
0 commit comments