return (Long) getStartTime.invoke(runtimeMXBean);
} catch (final Throwable t) {
StatusLogger.getLogger()
- .error(
- "Unable to call ManagementFactory.getRuntimeMXBean().getStartTime(), "
- + "using system time for OnStartupTriggeringPolicy",
- t);
+ .error("Unable to call ManagementFactory.getRuntimeMXBean().getStartTime(), using system time for OnStartupTriggeringPolicy", t);
// We have little option but to declare "now" as the beginning of time.
return System.currentTimeMillis();
}
Problem
Reformatting occurs when no other modifications are made.
Expected behavior
When no changes are made to a logging callsite, no modifications should occur to the formatting.
Example diff
From:
log4j-1.2-api/src/main/java/org/apache/log4j/bridge/LogEventAdapter.java
Recipes in example diff:
org.openrewrite.java.logging.ParameterizedLogging
References:
org.openrewrite.java.logging.ParameterizedLogging
Parameterize logging statements
apache/logging-log4j2/2.x