File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
smithy-aws-kotlin-codegen
smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/model Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -44,13 +44,13 @@ dependencies {
4444
4545tasks.withType<KotlinCompile > {
4646 compilerOptions {
47- jvmTarget.set(JvmTarget .JVM_1_8 )
47+ jvmTarget.set(JvmTarget .JVM_17 )
4848 }
4949}
5050
5151tasks.withType<JavaCompile > {
52- sourceCompatibility = JavaVersion .VERSION_1_8 .toString()
53- targetCompatibility = JavaVersion .VERSION_1_8 .toString()
52+ sourceCompatibility = JavaVersion .VERSION_17 .toString()
53+ targetCompatibility = JavaVersion .VERSION_17 .toString()
5454}
5555
5656// Reusable license copySpec
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ 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 java.util.stream.Collectors
2524
2625/* *
2726 * Get all shapes of a particular type from the model.
@@ -33,7 +32,7 @@ import java.util.stream.Collectors
3332 * shape's closure for example)
3433 */
3534@Suppress(" EXTENSION_SHADOWED_BY_MEMBER" )
36- inline fun <reified T : Shape > Model.shapes (): List <T > = shapes(T ::class .java).collect( Collectors . toList() )
35+ inline fun <reified T : Shape > Model.shapes (): List <T > = shapes(T ::class .java).toList()
3736
3837/* *
3938 * Extension function to return a shape of expected type.
You can’t perform that action at this time.
0 commit comments