Pankraz76 commented on code in PR #2404: URL: https://github.com/apache/maven/pull/2404#discussion_r2113612293
########## src/mdo/java/WrapperProperties.java: ########## @@ -45,30 +50,44 @@ class WrapperProperties extends Properties { final Supplier<Map<String, String>> getter; final Consumer<Properties> setter; + private final OrderedProperties orderedProps = new OrderedProperties(); + private boolean initialized = false; WrapperProperties(Supplier<Map<String, String>> getter, Consumer<Properties> setter) { this.getter = getter; this.setter = setter; } + private synchronized void ensureInitialized() { + if (!initialized) { + Map<String, String> initial = getter.get(); + orderedProps.putAll(initial); Review Comment: ```suggestion orderedProps.putAll(getter.get()); ``` consider inline. was wondered and searching why its not returned or used again. type does not matter, its random impl. detail. -- 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: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org