Skip to content

Conversation

lslonina
Copy link
Contributor

@lslonina lslonina commented Jun 6, 2025

  • Refactor creation to avoid redundant canonicalization calls
  • Introduced internal factory methods for clearer construction paths

Overview


I hereby agree to the terms of the JUnit Contributor License Agreement.


Definition of Done

mpkorstanje

This comment was marked as duplicate.

@mpkorstanje

This comment was marked as outdated.

@ALUMINIS650

This comment was marked as outdated.

@lslonina
Copy link
Contributor Author

lslonina commented Jun 6, 2025

@mpkorstanje Thanks for the feedback — the code can definitely be simplified, especially with the instance method approach. Let’s see how the discussion on this topic evolves; I’ll keep this marked as a draft for now.

@lslonina lslonina marked this pull request as draft June 6, 2025 10:46
@marcphilipp marcphilipp linked an issue Jun 6, 2025 that may be closed by this pull request
@mpkorstanje
Copy link
Contributor

@mpkorstanje Thanks for the feedback — the code can definitely be simplified, especially with the instance method approach. Let’s see how the discussion on this topic evolves; I’ll keep this marked as a draft for now.

@lslonina the issue has moved off team discussion. Do you have time available to patch up your PR or would you prefer to hand it over?

@lslonina
Copy link
Contributor Author

Thanks for picking this up. I’ve added @API(status = EXPERIMENTAL, since = "6.0"), but if this is a backport candidate, should we change it to since = "5.13.5" instead?

@marcphilipp
Copy link
Member

Thanks for picking this up. I’ve added @API(status = EXPERIMENTAL, since = "6.0"), but if this is a backport candidate, should we change it to since = "5.13.5" instead?

Good question! Please keep using 6.0. We'll adjust it when backporting.

@marcphilipp

This comment was marked as outdated.

@marcphilipp marcphilipp changed the title Add withPosition() factory method to FileSource Add withPosition(FilePosition) method to FileSource Sep 13, 2025
@marcphilipp marcphilipp self-assigned this Sep 13, 2025
@marcphilipp marcphilipp merged commit 64836f5 into junit-team:main Sep 13, 2025
21 checks passed
@marcphilipp
Copy link
Member

Thanks, @lslonina! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce withPosition() "wither" method in FileSource
5 participants