Skip to content

Commit 0f013c4

Browse files
GooolerCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent cfb9233 commit 0f013c4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/java24/kotlin/com/github/jengelman/gradle/plugins/shadow/internal/RelocatorRemapper.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ import kotlin.jvm.optionals.getOrNull
6464
import org.gradle.api.GradleException
6565
import org.gradle.api.file.FileCopyDetails
6666

67+
/**
68+
* Applies remapping to the given class file using the provided relocators and returns the
69+
* (possibly) remapped class bytes. If no remapping is required, the original bytes are returned.
70+
*/
6771
@Suppress("unused") // Used by Multi-Release JARs for Java 24+.
6872
internal fun FileCopyDetails.remapClass(relocators: Set<Relocator>): ByteArray =
6973
file.readBytes().let { bytes ->

0 commit comments

Comments
 (0)