Skip to content

Conversation

elharo
Copy link
Contributor

@elharo elharo commented May 28, 2025

org is unclear and unneeded. Probably meant "original"? In any case, we don't need it.

@elharo elharo requested a review from gnodet May 28, 2025 11:53

String substValue = processSubstitution(
variable, org, cycleMap, configProps, callback, postprocessor, defaultsToEmptyString);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems its currently renaming not removal.

@elharo elharo marked this pull request as ready for review May 28, 2025 14:19
@@ -283,7 +283,7 @@ private static String doSubstVars(
}

private static String processSubstitution(
String variable,
final String variable,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, I don't like final parameters.

Copy link
Contributor

@Pankraz76 Pankraz76 Jun 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assuming you mean the explicit final declaration. Params should be treated final by default to avoid coupling, thus bugs.

@elharo
Copy link
Contributor Author

elharo commented May 29, 2025

Test failures might be related but unclear why it only fails on java 21

@@ -284,8 +283,7 @@ private static String doSubstVars(
}

private static String processSubstitution(
String variable,
String org,
final String variable,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
final String variable,
String variable,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor

@gnodet gnodet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the final parameter, otherwise looks good.

@Pankraz76
Copy link
Contributor

otherwise looks good.

pr title?

it seems more rename, rather than remove.

@elharo
Copy link
Contributor Author

elharo commented Jun 3, 2025

No, it's definitely removed

@Pankraz76
Copy link
Contributor

yes sorry from 7 to 6 params.

@elharo elharo merged commit 275bf82 into master Jun 6, 2025
26 checks passed
@elharo elharo deleted the local2 branch June 6, 2025 15:15
@github-actions github-actions bot added this to the 4.0.0-rc-4 milestone Jun 6, 2025
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.

3 participants