jvz commented on code in PR #1964:
URL: https://github.com/apache/logging-log4j2/pull/1964#discussion_r1391509246
##########
log4j-core/src/main/java/org/apache/logging/log4j/core/util/Constants.java:
##########
@@ -76,8 +76,10 @@ public final class Constants {
* {@code true} if we think we are running in a web container, based on
the boolean value of system property
* "log4j2.is.webapp", or (if this system property is not set) whether the
{@code javax.servlet.Servlet} class
* is present in the classpath.
+ * @deprecated use {@link
org.apache.logging.log4j.util.Constants#isWebApp()}
*/
- public static final boolean IS_WEB_APP =
org.apache.logging.log4j.util.Constants.IS_WEB_APP;
+ @Deprecated
Review Comment:
This one is already here. I deprecated it because the method should be
invoked instead. Nothing in our codebase is using this field, but I left it in
place for backward compatibility (well, the BND plugin would make me bump this
package to 3.0.0 if I removed it to be honest lol)
--
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]