Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #250 #251

Merged
merged 1 commit into from
Jan 9, 2025
Merged

Fix #250 #251

merged 1 commit into from
Jan 9, 2025

Conversation

ludorival
Copy link
Owner

  • Updated the body function in Pact.kt to use a safer casting approach with as? instead of inline reified type parameters, improving type safety.
  • Modified the serializerWith and serializerAsDefault functions in Utils.kt to remove inline reified type parameters, simplifying the function signatures while maintaining functionality.

These changes enhance type handling and simplify the serialization utility methods in the pact-jvm-mock library.

- Updated the `body` function in `Pact.kt` to use a safer casting approach with `as?` instead of inline reified type parameters, improving type safety.
- Modified the `serializerWith` and `serializerAsDefault` functions in `Utils.kt` to remove inline reified type parameters, simplifying the function signatures while maintaining functionality.

These changes enhance type handling and simplify the serialization utility methods in the pact-jvm-mock library.
@ludorival ludorival merged commit 2a90807 into main Jan 9, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant