Skip to content

Commit 9beca23

Browse files
committed
misc: revert toList/JVM compatibility changes
1 parent c689ff5 commit 9beca23

File tree

2 files changed

+4
-5
lines changed
  • codegen

2 files changed

+4
-5
lines changed

codegen/smithy-aws-kotlin-codegen/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ dependencies {
4444

4545
tasks.withType<KotlinCompile> {
4646
compilerOptions {
47-
jvmTarget.set(JvmTarget.JVM_1_8)
47+
jvmTarget.set(JvmTarget.JVM_17)
4848
}
4949
}
5050

5151
tasks.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

codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/model/ShapeExt.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import software.amazon.smithy.rulesengine.language.EndpointRuleSet
2121
import software.amazon.smithy.rulesengine.traits.EndpointRuleSetTrait
2222
import software.amazon.smithy.rulesengine.traits.EndpointTestCase
2323
import 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.

0 commit comments

Comments
 (0)