File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/model Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import software.amazon.smithy.rulesengine.language.EndpointRuleSet
2121import software.amazon.smithy.rulesengine.traits.EndpointRuleSetTrait
2222import software.amazon.smithy.rulesengine.traits.EndpointTestCase
2323import software.amazon.smithy.rulesengine.traits.EndpointTestsTrait
24+ import kotlin.streams.toList as kotlinToList // Gave this import a unique name because the Java one was being preferred
2425
2526/* *
2627 * Get all shapes of a particular type from the model.
@@ -32,7 +33,7 @@ import software.amazon.smithy.rulesengine.traits.EndpointTestsTrait
3233 * shape's closure for example)
3334 */
3435@Suppress(" EXTENSION_SHADOWED_BY_MEMBER" )
35- inline fun <reified T : Shape > Model.shapes (): List <T > = shapes(T ::class .java).toList ()
36+ inline fun <reified T : Shape > Model.shapes (): List <T > = shapes(T ::class .java).kotlinToList ()
3637
3738/* *
3839 * Extension function to return a shape of expected type.
You can’t perform that action at this time.
0 commit comments