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 c5c8ef5 commit 4d07cabCopy full SHA for 4d07cab
joern-cli/frontends/javasrc2cpg/src/test/scala/io/joern/javasrc2cpg/querying/VarDeclTests.scala
@@ -206,6 +206,18 @@ class VarDeclTests extends JavaSrcCode2CpgFixture {
206
.head shouldBe "org.apache.flink.streaming.connectors.kafka.FlinkKafkaProducer.<init>:<unresolvedSignature>(3)"
207
}
208
209
+ "parse enums correctly" in {
210
+ val cpg = code(
211
+ """
212
+ |public enum Color {
213
+ | RED,
214
+ | GREEN,
215
+ | BLUE
216
+ |}
217
+ |""".stripMargin).withConfig(Config().withKeepTypeArguments(true))
218
+
219
+ cpg.typeDecl("Color").code.head shouldBe "public enum Color"
220
+ }
221
222
223
0 commit comments