We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 955336f commit 0d6da9cCopy full SHA for 0d6da9c
java/ql/lib/semmle/code/java/deadcode/DeadCode.qll
@@ -307,6 +307,12 @@ class RootdefCallable extends Callable {
307
or
308
// Exclude generated callables, such as `...$default` ones extracted from Kotlin code.
309
this.isCompilerGenerated()
310
+ or
311
+ // Exclude Kotlin serialization constructors.
312
+ this.(Constructor)
313
+ .getParameterType(this.getNumberOfParameters() - 1)
314
+ .(RefType)
315
+ .hasQualifiedName("kotlinx.serialization.internal", "SerializationConstructorMarker")
316
}
317
318
0 commit comments