This is an automated email from the ASF dual-hosted git repository.
vy pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/2.x by this push:
new e6a89c089b Change `{@literal null}` to `{@code null}` (#1424)
e6a89c089b is described below
commit e6a89c089ba317adadd1e064c287eb8caee12f9f
Author: Michael Ernst <[email protected]>
AuthorDate: Wed Apr 12 06:05:40 2023 -0700
Change `{@literal null}` to `{@code null}` (#1424)
---
.../main/java/org/apache/log4j/config/Log4j1ConfigurationParser.java | 2 +-
log4j-api/src/main/java/org/apache/logging/log4j/LogBuilder.java | 2 +-
.../java/org/apache/logging/log4j/core/parser/LogEventParser.java | 4 ++--
.../java/org/apache/logging/log4j/core/parser/TextLogEventParser.java | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git
a/log4j-1.2-api/src/main/java/org/apache/log4j/config/Log4j1ConfigurationParser.java
b/log4j-1.2-api/src/main/java/org/apache/log4j/config/Log4j1ConfigurationParser.java
index be810249b1..3a202f0c2b 100644
---
a/log4j-1.2-api/src/main/java/org/apache/log4j/config/Log4j1ConfigurationParser.java
+++
b/log4j-1.2-api/src/main/java/org/apache/log4j/config/Log4j1ConfigurationParser.java
@@ -83,7 +83,7 @@ public class Log4j1ConfigurationParser {
*
* @param input
* InputStream to read from is assumed to be ISO 8859-1, and
will not be closed.
- * @return the populated ConfigurationBuilder, never {@literal null}
+ * @return the populated ConfigurationBuilder, never {@code null}
* @throws IOException
* if unable to read the input
* @throws ConfigurationException
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/LogBuilder.java
b/log4j-api/src/main/java/org/apache/logging/log4j/LogBuilder.java
index 75af9a387f..2394b84bf5 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/LogBuilder.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/LogBuilder.java
@@ -116,7 +116,7 @@ public interface LogBuilder {
* Causes all the data collected to be logged along with the message.
*
* @param messageSupplier The supplier of the message to log.
- * @return the message logger or {@literal null} if no logging occurred.
+ * @return the message logger or {@code null} if no logging occurred.
* @since 2.20
*/
default Message logAndGet(final Supplier<Message> messageSupplier) {
diff --git
a/log4j-core/src/main/java/org/apache/logging/log4j/core/parser/LogEventParser.java
b/log4j-core/src/main/java/org/apache/logging/log4j/core/parser/LogEventParser.java
index 6d071bd0b8..03f96c117c 100644
---
a/log4j-core/src/main/java/org/apache/logging/log4j/core/parser/LogEventParser.java
+++
b/log4j-core/src/main/java/org/apache/logging/log4j/core/parser/LogEventParser.java
@@ -27,7 +27,7 @@ public interface LogEventParser {
*
* @param input the byte array
*
- * @return the parsed LogEvent, never {@literal null}.
+ * @return the parsed LogEvent, never {@code null}.
* @throws ParseException if the input is malformed and cannot be parsed
as a LogEvent
*/
LogEvent parseFrom(byte[] input) throws ParseException;
@@ -40,7 +40,7 @@ public interface LogEventParser {
* @param offset the initial offset
* @param length the length
*
- * @return the parsed LogEvent, never {@literal null}.
+ * @return the parsed LogEvent, never {@code null}.
* @throws ParseException if the input is malformed and cannot be parsed
as a LogEvent
*/
LogEvent parseFrom(byte[] input, int offset, int length) throws
ParseException;
diff --git
a/log4j-core/src/main/java/org/apache/logging/log4j/core/parser/TextLogEventParser.java
b/log4j-core/src/main/java/org/apache/logging/log4j/core/parser/TextLogEventParser.java
index 2ef2bc3dd7..1560c78f91 100644
---
a/log4j-core/src/main/java/org/apache/logging/log4j/core/parser/TextLogEventParser.java
+++
b/log4j-core/src/main/java/org/apache/logging/log4j/core/parser/TextLogEventParser.java
@@ -28,7 +28,7 @@ public interface TextLogEventParser extends LogEventParser {
*
* @param input the string
*
- * @return the parsed LogEvent, never {@literal null}.
+ * @return the parsed LogEvent, never {@code null}.
* @throws ParseException if the input is malformed and cannot be parsed
as a LogEvent
*/
LogEvent parseFrom(String input) throws ParseException;