From 8d551b7a4b17e3b25ba13bda08d93443cd484b7a Mon Sep 17 00:00:00 2001 From: hermannm Date: Fri, 27 Dec 2024 01:42:49 +0100 Subject: [PATCH] Improve documentation of nullability on LoggingEvent interface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hermann Mørkrid --- .../src/main/java/org/slf4j/event/LoggingEvent.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/slf4j-api/src/main/java/org/slf4j/event/LoggingEvent.java b/slf4j-api/src/main/java/org/slf4j/event/LoggingEvent.java index 434b2d18b..a33a708ca 100755 --- a/slf4j-api/src/main/java/org/slf4j/event/LoggingEvent.java +++ b/slf4j-api/src/main/java/org/slf4j/event/LoggingEvent.java @@ -17,24 +17,27 @@ public interface LoggingEvent { String getLoggerName(); + /** Log message, might be null. */ String getMessage(); + /** List of arguments in the event, might be null. */ List getArguments(); + /** Array of arguments in the event, might be null. */ Object[] getArgumentArray(); - /** - * List of markers in the event, might be null. - * @return markers in the event, might be null. - */ + /** List of markers in the event, might be null. */ List getMarkers(); + /** List of key-value pairs in the event, might be null. */ List getKeyValuePairs(); + /** Cause exception, might be null. */ Throwable getThrowable(); long getTimeStamp(); + /** Name of thread that made the log, might be null. */ String getThreadName(); /**