gnodet commented on code in PR #11284:
URL: https://github.com/apache/maven/pull/11284#discussion_r2438973778


##########
impl/maven-impl/src/main/java/org/apache/maven/impl/model/DefaultModelObjectPool.java:
##########
@@ -80,7 +80,10 @@ public <T> T process(T object) {
         String simpleClassName = objectType.getSimpleName();
 
         // Check if this object type should be pooled (read configuration 
dynamically)
-        if (!getPooledTypes(properties).contains(simpleClassName)) {
+        if (stream(getProperty(MAVEN_MODEL_PROCESSOR_POOLED_TYPES, 
"Dependency").split(","))
+                .map(String::trim)
+                .filter(s -> !s.isEmpty())

Review Comment:
   The filter becomes quite useless here. I'd remove it.



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