in spring/src/main/java/org/apache/logging/log4j/boot/spring/Log4jLoggingSystem.java [49:65]
static {
Method factoryIsActive;
Method factorySupportedTypes;
try {
factoryIsActive = ConfigurationFactory.class.getDeclaredMethod("isActive");
ReflectionUtil.makeAccessible(factoryIsActive);
factorySupportedTypes = ConfigurationFactory.class.getDeclaredMethod("getSupportedTypes");
ReflectionUtil.makeAccessible(factorySupportedTypes);
} catch (final NoSuchMethodException e) {
Throwables.rethrow(e);
// unreachable; make the compiler happy
factoryIsActive = null;
factorySupportedTypes = null;
}
FACTORY_IS_ACTIVE = factoryIsActive;
FACTORY_SUPPORTED_TYPES = factorySupportedTypes;
}