Skip to content

Kotlin: clean up alternate-version code now that v1.5.x support is dropped#19496

Merged
smowton merged 2 commits intogithub:mainfrom
smowton:smowton/admin/cleanup-kotlin-versions
Jun 18, 2025
Merged

Kotlin: clean up alternate-version code now that v1.5.x support is dropped#19496
smowton merged 2 commits intogithub:mainfrom
smowton:smowton/admin/cleanup-kotlin-versions

Conversation

@smowton
Copy link
Copy Markdown
Contributor

@smowton smowton commented May 15, 2025

Alternative versions for v1.5.0 and v1.5.20 are merged forwards into v1.6.0 preferring the later version. Three files are deleted entirely since there would now be only one version, and their definitions inlined.

Copilot AI review requested due to automatic review settings May 15, 2025 11:13
@smowton smowton requested a review from a team as a code owner May 15, 2025 11:13
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Clean up version-specific wrappers now that support for Kotlin v1.5.x has been dropped and inlined functionality directly into v1.6.0.

  • Delete unused type aliases and helper functions for v1.5.0, v1.5.20, and v1.6.0
  • Inline direct calls to pluginContext.irBuiltIns.annotationType and pluginContext.irBuiltIns.functionN
  • Remove obsolete imports of versioned helpers

Reviewed Changes

Copilot reviewed 42 out of 42 changed files in this pull request and generated no comments.

Show a summary per file
File Description
java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_6_0/IrBuiltIns.kt Removed redundant IrBuiltIns typealias for v1.6.0
java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_6_0/Functions.kt Removed redundant functionN helper for v1.6.0
java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_5_20/FileEntry.kt Removed legacy FileEntry alias for v1.5.20
java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_5_0/annotationType.kt Removed deprecated annotation type helper for v1.5.0
java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_5_0/Psi2Ir.kt Removed stub of getPsi2Ir for v1.5.0
java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_5_0/IrBuiltIns.kt Removed outdated IrBuiltIns alias for v1.5.0
java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_5_0/Functions.kt Removed version-specific functionN implementation for v1.5.0
java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_5_0/FileEntry.kt Removed legacy FileEntry alias for v1.5.0
java/kotlin-extractor/src/main/kotlin/MetaAnnotationSupport.kt Inlined pluginContext.irBuiltIns.annotationType in place of helper
java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt Inlined pluginContext.irBuiltIns.functionN in place of helper
Comments suppressed due to low confidence (1)

java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_6_0/Functions.kt:1

  • [nitpick] The v_1_6_0 directory is now empty after removing its files; consider deleting the folder to avoid leftover empty version directories.
package com.github.codeql.utils.versions

@smowton smowton merged commit 4a14d35 into github:main Jun 18, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants