Skip to content

Commit ffd596b

Browse files
authored
Merge branch 'main' into expand-ruby-ssrf-sinks-faraday-connection-new
2 parents 244a332 + ac013f9 commit ffd596b

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ open class KotlinFileExtractor(
305305
val kind = c.kind
306306
if (kind == ClassKind.ENUM_CLASS) {
307307
tw.writeIsEnumType(classId)
308-
} else if (kind != ClassKind.CLASS && kind != ClassKind.OBJECT) {
308+
} else if (kind != ClassKind.CLASS && kind != ClassKind.OBJECT && kind != ClassKind.ENUM_ENTRY) {
309309
logger.errorElement("Unrecognised class kind $kind", c)
310310
}
311311
}
@@ -452,7 +452,7 @@ open class KotlinFileExtractor(
452452
val kind = c.kind
453453
if (kind == ClassKind.ENUM_CLASS) {
454454
tw.writeIsEnumType(classId)
455-
} else if (kind != ClassKind.CLASS && kind != ClassKind.OBJECT) {
455+
} else if (kind != ClassKind.CLASS && kind != ClassKind.OBJECT && kind != ClassKind.ENUM_ENTRY) {
456456
logger.warnElement("Unrecognised class kind $kind", c)
457457
}
458458

java/ql/test/kotlin/library-tests/methods/diagnostics.expected

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import java
2+
import semmle.code.java.Diagnostics
3+
4+
select any(Diagnostic d | not d.toString().matches("Not rewriting trap file for%"))

0 commit comments

Comments
 (0)