mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Kotlin: Add FP test cases for autoboxing query
This commit is contained in:
@@ -0,0 +1 @@
|
||||
| Test.kt:3:17:3:17 | x | This expression is implicitly unboxed. |
|
||||
@@ -0,0 +1 @@
|
||||
Violations of Best Practice/legacy/AutoBoxing.ql
|
||||
5
java/ql/test/kotlin/query-tests/AutoBoxing/Test.kt
Normal file
5
java/ql/test/kotlin/query-tests/AutoBoxing/Test.kt
Normal file
@@ -0,0 +1,5 @@
|
||||
fun foo(x: Int?) {
|
||||
if (x != null) {
|
||||
println(x)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user