gnodet-bot commented on code in PR #14218:
URL: https://github.com/apache/maven/pull/14218#discussion_r4761487332
##########
compat/maven-compat/src/main/java/org/apache/maven/internal/compat/interactivity/LegacyPlexusInteractivity.java:
##########
@@ -52,7 +52,7 @@ public
LegacyPlexusInteractivity(org.apache.maven.api.services.Prompter prompter
@Override
public String readLine() throws IOException {
try {
- return prompter.prompt(null);
+ return prompter.prompt(null, null, "");
Review Comment:
⚠️ **Missing regression test.** This fixes a user-visible regression but
adds no test to prevent it from silently returning. Please add a unit test for
`LegacyPlexusInteractivity#readLine()` (or `DefaultPrompter`) verifying that an
empty input (simulated Enter press) returns `""` rather than looping.
Without this test, the regression can re-appear undetected on future
refactors of `DefaultPrompter.doPrompt()`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]