[java-inspections] IDEA-374922 Highlight the second main method as unused (part of IDEA-372969 WIP)

GitOrigin-RevId: 11bc0dcd62d29f94270781ea5a79f4665575d0a9
This commit is contained in:
Mikhail Pyltsin
2025-06-24 23:04:26 +00:00
committed by intellij-monorepo-bot
parent 105b2eac5d
commit 7a31ef1f7d
9 changed files with 66 additions and 6 deletions
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
<problem>
<file>Test.java</file>
<line>6</line>
<highlighted_element>t3</highlighted_element>
<problem_class id="unused" severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">unused declaration</problem_class>
<description>Method is never used.</description>
</problem>
</problems>
@@ -0,0 +1,8 @@
void main(String[] args){
}
void main(){
}