jvz commented on code in PR #1964:
URL: https://github.com/apache/logging-log4j2/pull/1964#discussion_r1391506158


##########
log4j-api/src/main/java/org/apache/logging/log4j/util/Constants.java:
##########
@@ -22,24 +22,20 @@
  * @since 2.6.2
  */
 public final class Constants {
+    private static final LazyBoolean WEB_APP = new LazyBoolean(() -> 
isWebApp(PropertiesUtil.getProperties()));

Review Comment:
   It's to make testing this stuff not require breaking encapsulation or other 
hacks which aren't allowed in newer versions of Java. This is largely the same 
basic refactoring as was done in main for these two properties.



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