ppkarwasz commented on PR #3638: URL: https://github.com/apache/logging-log4j2/pull/3638#issuecomment-2841906192
> Okay, so checking the runtime platform appears ugly, because it requires copying the code from `SystemUtils` (which is available in `core` but not here in `api`) or referring to `core` as dependency - neither being a great idea... I think that this should be enough: ```java boolean isAndroid = System.getProperty("java.vendor", "").contains("Android"); ``` If we already know the `System.getSecurityManager()` is `null`, we don't even have to use a `try...catch`, since the `getProperty()` method can not throw. -- 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: notifications-unsubscr...@logging.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org