{@code
. */
+ /** The start of a {@code {\@...}} construct such as {@code {\@code foo}}, that is: {@code
. */
INLINE_TAG_OPEN,
- /** The end of a {@code {@...}} construct such as {@code {@code foo}}, i.e. a closing brace {@code }}. */
+ /** The end of a {@code {\@...}} construct such as {@code {\@code foo}}, i.e. a closing brace {\@code }}. */
INLINE_TAG_CLOSE,
/**
* Anything else: {@code foo}, {@code } etc. {@link JavadocLexer} sometimes creates adjacent literal tokens,
diff --git a/palantir-java-format/src/test/java/com/palantir/javaformat/java/JavadocFormattingTest.java b/palantir-java-format/src/test/java/com/palantir/javaformat/java/JavadocFormattingTest.java
index f9a652697..774746977 100644
--- a/palantir-java-format/src/test/java/com/palantir/javaformat/java/JavadocFormattingTest.java
+++ b/palantir-java-format/src/test/java/com/palantir/javaformat/java/JavadocFormattingTest.java
@@ -1159,9 +1159,10 @@ public void unicodeEscapesNotReplaced() {
}
@Test
+ @SuppressWarnings("UnicodeEscape")
public void unicodeEscapesNotInterpretedBug() {
/*
- * In theory, \u003C should be treated exactly like <, and so too should the escaped versions of
+ * In theory, "\u003C" should be treated exactly like <, and so too should the escaped versions of
* @, *, and other special chars. We don't recognize that, though, so we don't put what is
* effectively "" on a new line. */ @@ -1212,7 +1213,7 @@ public void doesNotBreakLink() { } /** - * Test that a long {@code {@link #foo(many, arguments)}} while keeping {@code @link} and {@code foo(many} on the + * Test that a long {@code "{\@link #foo(many, arguments)}"} while keeping {@code @link} and {@code foo(many} on the * same line. */ @Test