Skip to content

Commit 4145b93

Browse files
mernstrgoers
authored andcommitted
Change {@literal null} to {@code null} (#1424)
1 parent 06018e8 commit 4145b93

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

log4j-1.2-api/src/main/java/org/apache/log4j/config/Log4j1ConfigurationParser.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public class Log4j1ConfigurationParser {
8080
*
8181
* @param input
8282
* InputStream to read from is assumed to be ISO 8859-1, and will not be closed.
83-
* @return the populated ConfigurationBuilder, never {@literal null}
83+
* @return the populated ConfigurationBuilder, never {@code null}
8484
* @throws IOException
8585
* if unable to read the input
8686
* @throws ConfigurationException

log4j-api/src/main/java/org/apache/logging/log4j/LogBuilder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ default void log(final Supplier<Message> messageSupplier) {
116116
* Causes all the data collected to be logged along with the message.
117117
*
118118
* @param messageSupplier The supplier of the message to log.
119-
* @return the message logger or {@literal null} if no logging occurred.
119+
* @return the message logger or {@code null} if no logging occurred.
120120
* @since 2.20
121121
*/
122122
default Message logAndGet(final Supplier<Message> messageSupplier) {

log4j-core/src/main/java/org/apache/logging/log4j/core/parser/LogEventParser.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public interface LogEventParser {
2727
*
2828
* @param input the byte array
2929
*
30-
* @return the parsed LogEvent, never {@literal null}.
30+
* @return the parsed LogEvent, never {@code null}.
3131
* @throws ParseException if the input is malformed and cannot be parsed as a LogEvent
3232
*/
3333
LogEvent parseFrom(byte[] input) throws ParseException;
@@ -40,7 +40,7 @@ public interface LogEventParser {
4040
* @param offset the initial offset
4141
* @param length the length
4242
*
43-
* @return the parsed LogEvent, never {@literal null}.
43+
* @return the parsed LogEvent, never {@code null}.
4444
* @throws ParseException if the input is malformed and cannot be parsed as a LogEvent
4545
*/
4646
LogEvent parseFrom(byte[] input, int offset, int length) throws ParseException;

log4j-core/src/main/java/org/apache/logging/log4j/core/parser/TextLogEventParser.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public interface TextLogEventParser extends LogEventParser {
2828
*
2929
* @param input the string
3030
*
31-
* @return the parsed LogEvent, never {@literal null}.
31+
* @return the parsed LogEvent, never {@code null}.
3232
* @throws ParseException if the input is malformed and cannot be parsed as a LogEvent
3333
*/
3434
LogEvent parseFrom(String input) throws ParseException;

0 commit comments

Comments
 (0)