Kotlin: Add test case for missing enum constants

This commit is contained in:
Tamas Vajk
2022-10-04 13:29:15 +02:00
parent 42a97b26bb
commit 876bea653d
3 changed files with 6 additions and 0 deletions

View File

@@ -1 +1,3 @@
fun usesEnum(e: Enum<*>) = e.ordinal.toString() + e.name
enum class E { A, B, C }

View File

@@ -1,3 +1,5 @@
enumConstants
#select
| addAll |
| addRange |
| allOf |

View File

@@ -3,3 +3,5 @@ import java
from Method m
where m.getDeclaringType().getName().matches("Enum%")
select m.getName()
query predicate enumConstants(EnumConstant ec) { ec.fromSource() }