Use compact array declaration

This commit is contained in:
Gary Gregory committed 2023-11-19 09:24:17 -05:00
1 parent 9b69ba8a04
commit f0059b24d2
2 files changed
+3 -3

No files matched your search

@@ -169,7 +169,7 @@ public final class Log4jApiLogFactory extends LogFactory {
} }
private static final String[] EMPTY_ARRAY = new String[0]; private static final String[] EMPTY_ARRAY = {};
/** /**
* Marker used by all messages coming from Apache Commons Logging. * Marker used by all messages coming from Apache Commons Logging.
@@ -246,9 +246,9 @@ public final class Slf4jLogFactory extends LogFactory {
} }
} }
private static final Object[] EMPTY_OBJECT_ARRAY = new Object[0]; private static final Object[] EMPTY_OBJECT_ARRAY = {};
private static final String[] EMPTY_STRING_ARRAY = new String[0]; private static final String[] EMPTY_STRING_ARRAY = {};
/** /**
* Marker used by all messages coming from Apache Commons Logging. * Marker used by all messages coming from Apache Commons Logging.