gnodet-bot commented on code in PR #29701:
URL: https://github.com/apache/camel/pull/29701#discussion_r4549046975
##########
dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/DependencyList.java:
##########
@@ -55,7 +55,9 @@
" camel dependency list hello.java --output=gav"
})
public class DependencyList extends Export {
Review Comment:
`exportDir()` is defined with an identical body in both `DependencyList` and
`SBOMGenerator`:
```java
protected static String exportDir() {
return CommandLineHelper.getWorkDir().resolve("export").toString();
}
```
Both extend `Export`. If this method were defined once there instead, future
changes to the work-dir resolution would only need updating in one place.
--
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]