Tagir Valeev
943bacb4c0
[java-inspections] AnnotateMethodFix: mod-command
...
Now, works for in-code annotations only (but may work in batch). Was used for MissingOverrideAnnotationInspection and NullableStuffInspectionBase. The later uses old code now, as external annotations could be desired there.
Part of IDEA-322693 Migrate as much as possible Java intentions and quick-fixes to ModCommand API
GitOrigin-RevId: f580467c5e64782a629bbe7a48b7f95686f6b83c
2023-10-24 16:54:33 +00:00
Tagir Valeev
83ad94ff1f
[mod-commands] IDEA-333040 Convert CompositeIntentionQuickFix to ModCommand
...
GitOrigin-RevId: 67fd2853544b99e94e442566d29d874990292d9f
2023-09-21 16:08:02 +00:00
Yuriy Artamonov
c53774e2fc
[inspections] IDEA-321711 Use optimized PsiElementVisitor implementations
...
GitOrigin-RevId: 18ebc32aec877f71cd185ee7072dd139c076e9a3
2023-09-16 15:18:22 +00:00
Tagir Valeev
66d3646f6d
[java-inspections] IDEA-331613 "Overridden parameter annotations" lint should be "Overriding"
...
GitOrigin-RevId: 7234832a572304695efe2fd21af60127679715df
2023-09-15 10:19:11 +00:00
Roman Ivanov
31928210fc
[java] add move all members to class fix
...
GitOrigin-RevId: f5ad44f993f2f386c9847dc57ddac86cb4cf45d2
2023-09-07 08:48:06 +00:00
Alexey Kudravtsev
2da4d92224
make myLanguages thread-safe, optimization: reduce garbage
...
GitOrigin-RevId: b1d67c86b2779ee6be889c602b2a8d952b65fce3
2023-08-31 16:27:59 +00:00
Roman Ivanov
739e54a28e
[java] delete "move member into class" as error elements are not created for such members
...
GitOrigin-RevId: c50d6e0c6de204c5f290047f1ff99bf11ef14a4d
2023-08-27 21:24:06 +00:00
Roman Ivanov
5067549319
[java] add fix for adding main method to unnamed class IDEA-326263
...
GitOrigin-RevId: b37c5261785815c8768535d3bd7934d86652777e
2023-08-27 21:23:25 +00:00
Roman Ivanov
4ef891cf5e
add unnamed class feature and check for usage
...
GitOrigin-RevId: 51ab72778378fdf84d19cb801b10ef9fb1eb2929
2023-08-27 21:23:12 +00:00
Tagir Valeev
6495c1370c
[java-dfa] IDEA-327154 String templates support in data flow inspection
...
GitOrigin-RevId: da9176e33611213fa6ab49ef1aba03d8550c2c12
2023-08-04 15:20:03 +00:00
Alexey Kudravtsev
3a577a0ac1
remove harmful suppressions
...
GitOrigin-RevId: f3fc94795f1037e4265e5fbc2e485b8811578036
2023-08-03 18:24:49 +00:00
Tagir Valeev
a828a34968
[java-highlighting] Fixes in unnamed variables highlighting (IDEA-323960)
...
1. Highlight C-style arrays
2. Do not highlight variables inside for initializer
3. Highlight variables without initializer
4. Better message for underscore references when unnamed variables are allowed
GitOrigin-RevId: 5bca18969cf8fb0ea6e052b0aef71323bbfa69b5
2023-08-02 21:04:54 +00:00
Tagir Valeev
6c02bcf415
[java-inspections] IfStatementWithIdenticalBranchesInspection: support if-else merge inverting the second condition
...
Fixes IDEA-323850 Null-check and 'instanceof' combination could be simplified
GitOrigin-RevId: 20f5706ac06d6b1b0771b744fc20898de2d452d1
2023-07-31 15:35:27 +00:00
Tagir Valeev
a41ef84fea
[java] Unnamed variables
...
IDEA-323910 Implement parser for "JEP 443: Unnamed Patterns and Variables (Preview)"
IDEA-323960 Support error highlighting for unnamed variables (JEP 443)
GitOrigin-RevId: 1b9ee424063dfd4d32c2215fc8b0a9838dbdcd95
2023-07-31 13:41:28 +00:00
Tagir Valeev
29b6822774
[java-inspections] IDEA-325283 "Deprecated API usage" inspection should honor "since" value in annotation
...
GitOrigin-RevId: 81745fc9ea86715e914f7d7202d556690c45c443
2023-07-28 14:18:31 +00:00
Tagir Valeev
76aa489d1d
[java-dfa] Support failure handling in constant evaluator
...
Part of IDEA-326613 Support constant evaluation of Integer.parseInt and friends
Required for IDEA-324389 Inspection: Integer.parseInt() with a numeric String literal could be simplified
Also: added more Math methods
GitOrigin-RevId: 199a4bc5eaea9e8c2f26b6d4dfa5292ca8dd7795
2023-07-28 14:18:15 +00:00
Tagir Valeev
e55a975f7f
[java-inspections] NewExceptionWithoutArgumentsInspection: add option to ignore certain exceptions
...
Fixes IDEA-325424 Inspection 'Exception constructor without arguments' should allow exclusions
GitOrigin-RevId: 9297554f1dc6d95b8e4e2be5499d7a47a6703d4b
2023-07-28 08:52:53 +00:00
Tagir Valeev
ab550ac4c0
[java] IDEA-326473 Implement unnamed patterns
...
GitOrigin-RevId: 1b5db700434306be23d07e38905537025e2cc892
2023-07-27 10:03:54 +00:00
Yuriy Artamonov
c657abff94
[spring] IDEA-326210 Reuse processing models across field/methods checks in SpringAutowiringInspection
...
GitOrigin-RevId: 946df2d9efaae45397736d4a489d569f264af92d
2023-07-26 18:04:21 +00:00
Tagir Valeev
c718b21cc1
[java-refactoring] Convert local classes to inner ones
...
Fixes IDEA-218207 Move refactoring doesn't work for local classes
Also: Convert anonymous to inner -> do not create fields used in other field initializers only
Also: Convert anonymous to inner -> capture implicitly referred type parameters (mentioned in types of captured variables)
GitOrigin-RevId: 5d326e0b6fdff4de850ce48582cc3ca0fe003b43
2023-07-24 19:35:31 +00:00
Bas Leijdekkers
4e43fa56a0
Java: avoid "File not found: api22.txt" warning in the log
...
GitOrigin-RevId: 4fd1a373390cf1ae0bc3c77650bef20f0ec5d5a0
2023-07-19 16:08:41 +00:00
Tagir Valeev
f7c30e6971
[java-intentions] MethodThrowsFix: ModCommand
...
GitOrigin-RevId: e9fab99693bcfcd8729703edc3c96a8d8a31840a
2023-07-18 12:27:43 +00:00
Mikhail Pyltsin
61e64487f7
IJPF-CR-12323 [java-highlighting] IDEA-324307 IJ-CR-110222 Allow to use qualified name for enum in switch
...
GitOrigin-RevId: ad5ab12cef7f639c5a0d738d335ed25bf805a96b
2023-07-17 11:27:31 +00:00
Bas Leijdekkers
b9baaeb614
Java: parser and PSI for Java 21 Preview String templates (IDEA-321503)
...
initial version, not entirely complete
GitOrigin-RevId: a4968d546f02a05081eb1c8e0e198138968509fe
2023-07-06 22:53:38 +00:00
Mikhail Pyltsin
33666a70fc
[java-highlighting] IDEA-324307 IJ-CR-110222 Allow to use qualified name for enum in switch
...
GitOrigin-RevId: d165e80890f68ad8aa8524697b5ff4d22557fa7c
2023-07-06 00:03:23 +00:00
Mikhail Pyltsin
4bc43b46f4
[java-highlighting] IDEA-323955 Record patterns support available only for Java 20 preview. Fix compiler errors and tests
...
GitOrigin-RevId: 5f856519e56e61818e95cf63766fb6a54c6283ad
2023-07-05 12:09:22 +00:00
Mikhail Pyltsin
26e5f2d5dc
[java-highlighting] IDEA-323955 Record patterns support available only for Java 20 preview. Change HighlightingFeature
...
GitOrigin-RevId: 0aa46e13853d2a3e1daeb7f151d255cb34f3283d
2023-07-05 12:09:19 +00:00
Tagir Valeev
cf2584bfdd
[java-inspections] ReplaceWithConstantValueFix: suggest to extract side effects when applicable
...
Fixes IDEA-323618 Side-effect ignored by code assist
GitOrigin-RevId: 6206743a4af64948f95d722708e42caf05dda2f3
2023-07-03 21:09:36 +00:00
Bas Leijdekkers
0d0899abf5
Introduce language level for Java 21
...
GitOrigin-RevId: 8bef2575d63a5bc01a924e116fb471a47efcb0db
2023-06-27 14:38:18 +00:00
Tagir Valeev
2f1be4183d
[java-inspections] More ModCommand fixes
...
GitOrigin-RevId: 0c09d9d462156b87b8cd8ef33d203d959a579baf
2023-06-27 11:08:29 +00:00
Bas Leijdekkers
e48c788e1e
Java: add RefClass.isAnnotationType() method
...
GitOrigin-RevId: 3a5661194ed5836d5d5adf06434e04703c8c4e4a
2023-06-26 16:29:05 +00:00
Bas Leijdekkers
ae4e392cdc
Java: change reference graph method return type to avoid some unnecessary casts
...
GitOrigin-RevId: cbb043d4284bc30ad5137a75723f698a93e6594e
2023-06-26 16:29:03 +00:00
Tagir Valeev
ad40c945e2
[java-inspections] More quickfixes to ModCommand
...
GitOrigin-RevId: ccc6093d680712cb81c1325d997fb2771b61a0be
2023-06-25 19:05:51 +00:00
Bas Leijdekkers
01d55eeb9c
Java: add parentheses to inspection warning
...
GitOrigin-RevId: c85afe8b4c44d05f30e3b1361286c22de7d84e2c
2023-06-22 14:48:20 +00:00
Tagir Valeev
9ed1f2448f
[java-intentions] MoveBoundClassToFrontFix: ModCommand, better interface
...
GitOrigin-RevId: 41bb831d94ab11e981207646750d0d814b94c6ed
2023-06-22 10:54:18 +00:00
Andrey Cherkasov
9ccc820db2
[java] Remove Java 17 Preview and Java 18 Preview language levels
...
IDEA-314047
GitOrigin-RevId: 8c24deb2dfb5361f08857d7933ab290476f4ce84
2023-06-19 17:37:05 +00:00
Tagir Valeev
feb932c66e
[java-intentions] More ModCommand actions
...
GitOrigin-RevId: a336391bae84d99c45b3529cf404905dcf0635dd
2023-06-16 09:48:07 +00:00
Yuriy Artamonov
9c6efec962
[spring] Do not rerun meta annotations searches on typing
...
GitOrigin-RevId: 8fc260c5b427453841c903862e0b18940469c474
2023-06-06 09:25:24 +00:00
Alexey Kudravtsev
14ff37953d
specify return type explicitly in Kotlin in some openapi and util to speedup Kotlin resolve
...
GitOrigin-RevId: 2b68c5d51524b822c645dbcb3828acbdd15245ad
2023-05-31 15:36:27 +00:00
Tagir Valeev
9a63850218
[java-inspections] OptionalOfNullableMisuse: change message
...
GitOrigin-RevId: 168f791e21376d5a134683b7f3fc0661fdcaf091
2023-05-17 12:34:05 +00:00
Bart van Helvert
86cb46751d
[jvm] Support constructor calls in registerUProblem
...
GitOrigin-RevId: 6ce3bd53e529838b6fbf665bc36ba913ca75972e
2023-05-05 21:54:29 +00:00
Mikhail Pyltsin
4edcb035e7
[java-inspections] IDEA-282916 Improve tainted analysis, support local methods
...
GitOrigin-RevId: 27871a7bbab9f093863d110711f7bb67c9b09fd9
2023-05-05 16:37:52 +00:00
Vladimir Krivosheev
227d75a1fc
don't extend DynamicBundle
...
GitOrigin-RevId: 49cbebd629a92877dbeeffba8d97b0631fb9407e
2023-05-05 09:46:42 +00:00
Bart van Helvert
21ab331ac0
[jvm] Add support for setting highlight type in problem utilities
...
GitOrigin-RevId: 70bc01869bd697091c0b8b539910cf101c5657a9
2023-05-04 17:29:08 +00:00
Bart van Helvert
d395d8926f
[jvm] Move inspection problem register util to common module
...
GitOrigin-RevId: 90f7006fd11651bf7a28c22cde2ac043fc81f21d
2023-05-01 14:25:28 +00:00
Tagir Valeev
5906493339
[java-inspections] Less confusing warning & fix on misplaced annotation when fqn+array is used
...
GitOrigin-RevId: d490d2696d070827fbe6a3b958a05acd31afcdc7
2023-04-27 09:56:48 +00:00
Mikhail Pyltsin
699b5fd32c
[java-inspections] IDEA-318601, IDEA-283813 improve MarkAsSafeFix
...
GitOrigin-RevId: 49cdeaab2f3e856dd18e08064e0b715396ff7793
2023-04-25 11:16:36 +00:00
Andrey Cherkasov
0f673df822
[devkit] MismatchedLightServiceLevelAndCtorInspection: fix editor message and quick-fix text
...
IJ-CR-102194
GitOrigin-RevId: e596c556030bb12d58f01138c45996111fb7138c
2023-04-25 08:22:42 +00:00
Daniil Ovchinnikov
6fe5c49599
deprecate com.intellij.reference.SoftReference constructors
...
GitOrigin-RevId: a723be59b812f71953e79879d7adf09d58a9e935
2023-04-15 00:04:29 +00:00
Andrey Cherkasov
278a5b80a8
[devkit] LightServiceMustBeFinal: suggest removing the 'Service' annotation on abstract classes and interfaces
...
IJ-CR-102194
GitOrigin-RevId: d7bf3203b32d9da35df621ed7cdc5c4c68c775c8
2023-04-13 00:38:41 +00:00