Skip to content

Java: Add section in models docs about specifying java types#22115

Open
owen-mc wants to merge 1 commit into
github:mainfrom
owen-mc:java/update-mad-docs
Open

Java: Add section in models docs about specifying java types#22115
owen-mc wants to merge 1 commit into
github:mainfrom
owen-mc:java/update-mad-docs

Conversation

@owen-mc

@owen-mc owen-mc commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

This explains how to reference inner classes and generic types.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds documentation guidance for how to write Java/Kotlin type names and signatures in CodeQL library model (data extension) tuples, specifically covering nested/inner classes and generic type erasure.

Changes:

  • Documented the $-separated naming used for nested/inner classes (including in signatures), with a concrete System$Logger$Level example.
  • Documented how to represent generics under erasure in both the type column and the callable signature, with an Iterable.forEach(Consumer) example.
Show a summary per file
File Description
docs/codeql/codeql-language-guides/customizing-library-models-for-java-and-kotlin.rst Adds a new section explaining type/signature syntax for nested types and erased generics in Java/Kotlin models.

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Low

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants