michael-o commented on code in PR #1568:
URL: https://github.com/apache/maven/pull/1568#discussion_r1631493948


##########
maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingException.java:
##########
@@ -137,7 +137,7 @@ private static String toMessage(String modelId, 
List<ModelProblem> problems) {
         writer.print(problems.size());
         writer.print((problems.size() == 1) ? " problem was " : " problems 
were ");
         writer.print("encountered while building the effective model");
-        if (modelId != null && !modelId.isEmpty()) {
+        if (modelId != null && modelId.length() > 0) {

Review Comment:
   That is weird



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