elharo opened a new issue, #133:
URL: https://github.com/apache/maven-dependency-tree/issues/133

   ## Summary
   `ConflictData` has `originalScope` and `originaOptionality` fields with 
setters, but nothing in the code base ever sets them. The verbose dependency 
tree therefore never shows the “scope updated from …” annotation that 
`VerboseDependencyNode` is wired to print.
   
   ## Affected code
   - 
`src/main/java/org/apache/maven/shared/dependency/graph/internal/ConflictData.java:29-34,
 44-58` — fields only `winnerVersion`/`ignoredScope` are set via the constructor
   - 
`src/main/java/org/apache/maven/shared/dependency/graph/internal/VerboseDependencyNode.java:69-71`
 — `toNodeString()` prints “scope updated from …” only when 
`data.getOriginalScope() != null`, which is always null
   
   ## Impact
   A feature gap / dead code path: the verbose output silently omits “scope 
updated from”. Either wire up population of 
`originalScope`/`originaOptionality` (e.g. from the 
scope-deriver/`REDUCED_SCOPE` data), or remove the dead fields and code.


-- 
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]

Reply via email to