mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
[PR #802] [MERGED] codegen-java/kotlin: Fix generation of hashCode methods #746
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/802
Author: @odenix
Created: 11/12/2024
Status: ✅ Merged
Merged: 11/14/2024
Merged by: @bioball
Base:
main← Head:codegen-hashcode📝 Commits (1)
f9ad550codegen-java/kotlin: Fix generation of hashCode methods📊 Changes
5 files changed (+39 additions, -16 deletions)
View changed files
📝
pkl-codegen-java/src/main/kotlin/org/pkl/codegen/java/JavaCodeGenerator.kt(+7 -5)📝
pkl-codegen-java/src/test/resources/org/pkl/codegen/java/PropertyTypes.jva(+1 -1)📝
pkl-codegen-kotlin/src/main/kotlin/org/pkl/codegen/kotlin/KotlinCodeGenerator.kt(+10 -9)📝
pkl-codegen-kotlin/src/test/kotlin/org/pkl/codegen/kotlin/KotlinCodeGeneratorTest.kt(+20 -0)📝
pkl-codegen-kotlin/src/test/resources/org/pkl/codegen/kotlin/PropertyTypes.kotlin(+1 -1)📄 Description
codegen-java:
pattern.pattern()instead ofpatternin hashCode method(consistent with equals method)
codegen-kotlin:
regex.patterninstead ofregexin hashCode method(consistent with equals method)
an equals method but also a hashCode method
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.