[java-inspections] IDEA-379752 fix "missing '@deprecated' Javadoc tag explanation" throwing with Markdown Javadoc

GitOrigin-RevId: 0741065a739e8b7ea34a710a2038d762fdcbb5a3
This commit is contained in:
Bartek Pacia
2025-10-09 10:35:20 +00:00
committed by intellij-monorepo-bot
parent bece9f25d5
commit 539f7567fb
3 changed files with 46 additions and 1 deletions
@@ -71,3 +71,26 @@ class Debugger {
*/
@Deprecated String CONTENT_ROOT_ICON_OPEN = null;
}
class MarkdownJavadoc {
/// Nice method!
/// @deprecated TODO: explain
@Deprecated
void foo1() {
// ...
}
/// Nice method!
/// @deprecated TODO: explain
@Deprecated
void foo2() {
// ...
}
/// Nice method!
/// @deprecated don't use it
@Deprecated
void foo3() {
// ...
}
}
@@ -64,3 +64,25 @@ class Debugger {
*/
@Deprecated String CONTENT_ROOT_ICON_OPEN = null;
}
class MarkdownJavadoc {
/// Nice method!
/// @deprecated
@Deprecated
void <warning descr="Missing '@deprecated' Javadoc tag explanation">foo1</warning>() {
// ...
}
/// Nice method!
@Deprecated
void <warning descr="Missing '@deprecated' Javadoc tag explanation">foo2</warning>() {
// ...
}
/// Nice method!
/// @deprecated don't use it
@Deprecated
void foo3() {
// ...
}
}