Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7eebf81

Browse files
committed
Kotlin: Remove some now-unnecessary casts
1 parent bcbcd61 commit 7eebf81

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

java/kotlin-extractor/src/main/kotlin/KotlinExtractorExtension.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -851,12 +851,10 @@ class KotlinFileExtractor(val logger: FileLogger, val tw: FileTrapWriter, val fi
851851
id: Label<out DbBreakcontinuestmt>
852852
) {
853853
val locId = tw.getLocation(e)
854-
@Suppress("UNCHECKED_CAST")
855-
tw.writeHasLocation(id as Label<out DbLocatable>, locId)
854+
tw.writeHasLocation(id, locId)
856855
val label = e.label
857856
if (label != null) {
858-
@Suppress("UNCHECKED_CAST")
859-
tw.writeNamestrings(label, "", id as Label<out DbNamedexprorstmt>)
857+
tw.writeNamestrings(label, "", id)
860858
}
861859

862860
val loopId = loopIdMap[e.loop]

0 commit comments

Comments
 (0)