From 0a4505fa97ef0ff67d3b932b7e6a015a630275ac Mon Sep 17 00:00:00 2001 From: Felix Schumacher Date: Tue, 22 Dec 2020 16:26:31 +0100 Subject: [PATCH] Correct markup in javadoc for unbalanced braces (#679) Use { instead of {@code {}, as the latter one is invalid. It works onn the current javadoc, as it is accompanied with the equally invalid closing statement {@code }}, which balances the used braces in the @code fragements and combines the first invalid statement with the last one. --- .../org/apache/commons/lang3/text/ExtendedMessageFormat.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java b/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java index c0cd9b311..06b4f420e 100644 --- a/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java +++ b/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java @@ -39,8 +39,8 @@ * and the formats supported by {@code java.text.MessageFormat} can be overridden * at the format and/or format style level (see MessageFormat). A "format element" * embedded in the message pattern is specified (()? signifies optionality):
- * {@code {}argument-number({@code ,}format-name - * ({@code ,}format-style)?)?{@code }} + * {argument-number({@code ,}format-name + * ({@code ,}format-style)?)?} * *

* format-name and format-style values are trimmed of surrounding whitespace