slachiewicz commented on code in PR #970:
URL: https://github.com/apache/maven-archetype/pull/970#discussion_r2647306211


##########
maven-archetype-plugin/src/main/java/org/apache/maven/archetype/ui/generation/ArchetypeSelectorUtils.java:
##########
@@ -37,12 +37,12 @@ private ArchetypeSelectorUtils() {
     }
 
     private static String extractGroupIdFromFilter(String filter) {
-        return StringUtils.contains(filter, ':') ? 
StringUtils.substringBefore(filter, ":") : null;
+        return filter.contains(":") ? StringUtils.substringBefore(filter, ":") 
: null;

Review Comment:
   maybe also 2nd call in this line? `StringUtils.substringBefore`



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