bartoszpop commented on code in PR #17035:
URL: https://github.com/apache/camel/pull/17035#discussion_r1942486197


##########
dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/download/KnownDependenciesResolver.java:
##########
@@ -80,4 +80,13 @@ public MavenGav mavenGavForClass(String className) {
         }
         return answer;
     }
+
+    private String findGav(String prefix) {
+        String gav = mappings.get(prefix);
+        while (gav == null && prefix.lastIndexOf(".") != -1) {

Review Comment:
   But the class may be in a subpackage, e.g. consider 
com.example:somejar:1.0.0 and two classes 
com.example.somejar.subpackage.SomeClass
   com.example.somejar.otherpackage.OtherClass



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