Skip to content

Commit 3e89bf9

Browse files
Refactor StatusLogger to use precompiled Pattern constants
1 parent a7ef51c commit 3e89bf9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

log4j-api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,8 @@ private static Map<String, Object> normalizeProperties(Properties... propertiesL
501501
* @return {@code true}, if the property name is relevant; {@code false}, otherwise
502502
*/
503503
private static boolean isRelevantPropertyName(@Nullable final Object propertyName) {
504-
return propertyName instanceof String && LOG4J_PREFIX.matcher((String) propertyName).matches();
504+
return propertyName instanceof String
505+
&& LOG4J_PREFIX.matcher((String) propertyName).matches();
505506
}
506507

507508
/**

0 commit comments

Comments
 (0)