Skip to content

Refactor to separate Scala 2 WeakTypeTag code from shared runtime code#610

Merged
TimvdLippe merged 1 commit into
mockito:release/2.xfrom
jozic:mock-creator-refactoring
Feb 15, 2026
Merged

Refactor to separate Scala 2 WeakTypeTag code from shared runtime code#610
TimvdLippe merged 1 commit into
mockito:release/2.xfrom
jozic:mock-creator-refactoring

Conversation

@jozic

@jozic jozic commented Feb 15, 2026

Copy link
Copy Markdown
Contributor

Refactors Mockito internals to separate Scala-2-only WeakTypeTag logic from shared runtime code.

It introduces Scala-2 compatibility layers (MockCreator, MockitoEnhancer, ReflectionUtils) while moving common behavior into runtime traits and similarly splits reset mocks support into runtime + Scala-2 compat traits for scalatest.

@jozic jozic marked this pull request as ready for review February 15, 2026 04:05
@jozic

jozic commented Feb 15, 2026

Copy link
Copy Markdown
Contributor Author

@TimvdLippe please review when you have a moment

i will be sending more PRs soon to move closer to Scala 3 support

@TimvdLippe TimvdLippe 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.

Thanks!

@TimvdLippe TimvdLippe merged commit dd25c98 into mockito:release/2.x Feb 15, 2026
5 checks passed
@jozic jozic deleted the mock-creator-refactoring branch February 15, 2026 14:37
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.

2 participants