1
0

Use compact array declaration

This commit is contained in:
Gary Gregory
2023-11-19 09:24:17 -05:00
parent 9b69ba8a04
commit f0059b24d2
2 changed files with 3 additions and 3 deletions

View File

@@ -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.

View File

@@ -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.