[java-generation] IDEA-344399 generate annotation based on type_use option

- extracted new option
- reuse this option in MissortedModifiersInspection
- override uses this option too

GitOrigin-RevId: 39f3f72991240753c86c7f80df865728aa9743ad
This commit is contained in:
Mikhail Pyltsin
2024-06-17 21:14:57 +00:00
committed by intellij-monorepo-bot
parent f57df70730
commit 2023228d8c
26 changed files with 681 additions and 142 deletions
@@ -1298,7 +1298,16 @@ extends.object.remove.quickfix=Remove redundant 'extends Object'
implicit.call.to.super.ignore.option=Ignore for direct subclasses of 'java.lang.Object'
implicit.call.to.super.make.explicit.quickfix=Make call to 'super()' explicit
missorted.modifiers.require.option=Check annotation order
missorted.modifiers.typeuse.before.type.option=Target TYPE_USE annotations always go before type
missorted.modifiers.require.option.description=Use this option to report of misplaced annotations: \
(annotations with <code>ElementType.TYPE_USE</code> <em>not</em> directly \
before the type and after the modifier keywords, or \
other annotations <em>not</em> before the modifier keywords). \
When this option is disabled, any annotation can be positioned before or after the modifier keywords. \
Modifier lists with annotations in between the modifier keywords will always be reported.
missorted.modifiers.allowed.place=Target TYPE_USE annotations must be placed according to generation options
missorted.modifiers.allowed.place.description=Target TYPE_USE annotations must be placed according to \
<code>Settings->Editor->Code Style->Java->Code Generation->Generate annotations allowed for TYPE_USE directly before a type</code> option, \
otherwise it can be placed in any allowed place
missorted.modifiers.sort.quickfix=Sort modifiers
nested.method.call.ignore.option=Ignore nested method calls in field initializers
ignore.calls.to.static.methods=Ignore calls to static methods