File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
kotlin-extractor/src/main/kotlin
ql/test/kotlin/library-tests/methods Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ open class KotlinFileExtractor(
308
308
val kind = c.kind
309
309
if (kind == ClassKind .ENUM_CLASS ) {
310
310
tw.writeIsEnumType(classId)
311
- } else if (kind != ClassKind .CLASS && kind != ClassKind .OBJECT ) {
311
+ } else if (kind != ClassKind .CLASS && kind != ClassKind .OBJECT && kind != ClassKind . ENUM_ENTRY ) {
312
312
logger.errorElement(" Unrecognised class kind $kind " , c)
313
313
}
314
314
}
@@ -441,7 +441,7 @@ open class KotlinFileExtractor(
441
441
val kind = c.kind
442
442
if (kind == ClassKind .ENUM_CLASS ) {
443
443
tw.writeIsEnumType(classId)
444
- } else if (kind != ClassKind .CLASS && kind != ClassKind .OBJECT ) {
444
+ } else if (kind != ClassKind .CLASS && kind != ClassKind .OBJECT && kind != ClassKind . ENUM_ENTRY ) {
445
445
logger.warnElement(" Unrecognised class kind $kind " , c)
446
446
}
447
447
Original file line number Diff line number Diff line change
1
+ import java
2
+ import semmle.code.java.Diagnostics
3
+
4
+ select any ( Diagnostic d | not d .toString ( ) .matches ( "Not rewriting trap file for%" ) )
You can’t perform that action at this time.
0 commit comments