Commit Graph

693 Commits

Author SHA1 Message Date
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
Tagir Valeev
eac9020d84 [java-inspections] ExtractMethodRecommender: alternative highlighting experiment
GitOrigin-RevId: c630a700ff2b3ee4f76e23984172f9aeb31a6c15
2023-03-29 15:06:02 +00:00
Bas Leijdekkers
7980952817 Java: Add quick fix for "Vararg record component must be the last in the list" (IDEA-316182)
GitOrigin-RevId: f172229f06d5d21f0fcdcdc396931cd2867ac6c7
2023-03-28 12:31:57 +00:00
Tagir Valeev
bd21297370 [java] LanguageLevelUtil: add JDK 20
GitOrigin-RevId: 00a37470bf6161f614cf4ae28d09f9f9daab7ad3
2023-03-23 12:35:40 +00:00
Tagir Valeev
8d4697674c [java] Generate API diff for JDK 20
GitOrigin-RevId: 83b7b57cf0fdef43cd0372deaae6963d0fc0396e
2023-03-22 17:23:11 +00:00
Tagir Valeev
4b25e11528 [java-inspections] Extract method recommender: proofreading
GitOrigin-RevId: 747d75760e6a61c34c16b960cc60f2b59f1a59ff
2023-03-13 14:37:48 +00:00
Andrey Cherkasov
8e56c5dcf2 [jvm + devKit] Add action to change annotation attribute and use it in MismatchedLightServiceLevelAndCtorInspection
IJ-CR-102194

GitOrigin-RevId: bdef6309bfcaf710db8bdcc773ac43757856e8f1
2023-03-13 12:53:51 +00:00
Nicolay Mitropolsky
1bc9e3ae55 IDEA-314469: lower JVM target level for *intellij.platform.uast*
GitOrigin-RevId: 9aa9245395c5d5b38b2b20b43ad12d0f7139506f
2023-03-10 13:33:36 +00:00
Mikhail Pyltsin
86442fe3d9 [java-highlighting] IDEA-299588. generate missed deconstruction branches. Support cases with in-place exhausted
GitOrigin-RevId: 79357711523917237d5a0a3eb5c90633de01c07e
2023-03-07 00:54:16 +00:00
Mikhail Pyltsin
b300b7c1ec [java-highlighting] IDEA-299588. generate missed branches fix in switch with deconstruction
GitOrigin-RevId: af4e42198f5bc6dc5c5f505443e2e55085abf196
2023-03-06 20:07:16 +00:00
Tagir Valeev
f5effaaeb3 [java] IDEA-210466 Suggest to move Java file to the source root
GitOrigin-RevId: f225ebbb2bcb6084b36ca504aae4e5463c074fc5
2023-03-06 15:05:37 +00:00
Tagir Valeev
2c0d7c5469 [java-dfa] Better tracking of class instantiability
Fixes IDEA-310238 Warn if an interface class is used for == comparison with value returned from smth.getClass()

GitOrigin-RevId: 03e2943f3df69c3021b387be0aa32fef42123321
2023-03-02 14:22:29 +00:00
Tagir Valeev
f4a568e5d6 [java-inspections] ExtractMethodRecommender: proof-reading
GitOrigin-RevId: c737ea5a56fbd23097aab81234692d93ff551b39
2023-02-24 11:31:53 +00:00
Tagir Valeev
5f02a4d3ba [java-inspections] ExtractMethodRecommender: proofreading
GitOrigin-RevId: 4dded16ebf9f26f53cdca089f2c5d51ae7fcb98c
2023-02-23 14:40:36 +00:00
Tagir Valeev
5612d67279 [code-inspections] SetInspectionOptionFix: support numerical value; used in ExtractMethodRecommenderInspection
GitOrigin-RevId: d4f587f5f1e280eca12f5b0e0ab48e232ba187f3
2023-02-23 13:14:33 +00:00
Alexey Kudravtsev
9f5b60b0f0 replace some usages of ContainerUtil.set() with immutable sets to get rid of unclear-semantic methods
GitOrigin-RevId: 3ba1266af01d64a228c10df59b18c4ac797c2a9b
2023-02-20 19:11:19 +00:00
Tagir Valeev
7218710d59 [java-inspections] IDEA-313710 Suggest extract method refactoring on code snippets inside long methods
Draft implementation; currently isInternal and turned off by default

GitOrigin-RevId: 9f2d72de70112062929edd33a4bc9f8693f923fb
2023-02-20 15:23:36 +00:00
Alexey Kudravtsev
a09e773338 notnull (in support of IDEA-312632)
GitOrigin-RevId: 2087ada7b8e60291946bf0fc97d1b50367e111a1
2023-02-14 18:00:08 +00:00
Tagir Valeev
e9cd48e8b7 [java-inspections] Proof-reading
GitOrigin-RevId: 90920eb2a514ccbbb8d51f9a2343ba4b32c0ecce
2023-02-14 14:00:37 +00:00
Alexey Kudravtsev
77dc8d93ab codeinsight: convert some private/internal classes to record to simplify code
GitOrigin-RevId: 1820f00e72361868b6748039011c39598a82655b
2023-02-07 19:32:27 +00:00
Alexey Kudravtsev
1cf8b386de avoid calling PsiFile.isValid in EDT to fix EA-659462 T: DirectoryIndexImpl.getInfoForFile
GitOrigin-RevId: f28dc9a0dc12bbd5284646b025de7ce72e06682f
2023-02-03 17:18:10 +00:00
Roland Illig
be60ef5f33 Clean up Javadoc of JvmElementActionsFactory
GitOrigin-RevId: f5c08b95076b451cb63493491bf0d6af6fbf7150
2023-02-03 06:30:12 +00:00
Tagir Valeev
e9832acb26 [java] Use pattern variables; other minor cleanup
GitOrigin-RevId: e2345bd54d92f6676c6fbc55955e85cbdc5c2793
2023-02-01 17:09:26 +00:00
Anna Kozlova
6aa468aabd [kotlin] move to more appropriate bundle
GitOrigin-RevId: 95ad0451aaf13935d1296f4039ccdecb8ab9126e
2023-01-24 17:13:55 +00:00
Anna Kozlova
6bdb09bae5 [kotlin] explicitly execute potentially slow override/implement search under progress (KTIJ-24371)
GitOrigin-RevId: 9a47fa8a9a622353e34cfd0e9ca0d04bb07429a0
2023-01-23 18:12:26 +00:00
Nikolay Chashnikov
c1f2c8a692 cleanup: remove redundant '@author' tags from javadoc comments - 9
Now we have Code Vision hints which determine the author via Git history and show it in the editor automatically, and this information is more accurate than the tags which were automatically added when files were created.

GitOrigin-RevId: fcf3f973d7c945698016443c015023e73ac71572
2023-01-18 17:01:54 +00:00
Daniil Ovchinnikov
578eaaf60e rename library kotlin-stdlib-jdk8 -> kotlin-stdlib
GitOrigin-RevId: cddf45ccfd5563d3fe209bea62a1c37c94f44ff9
2023-01-10 12:22:34 +00:00
Vladimir Krivosheev
57764d700b mark classes final
GitOrigin-RevId: 6414b6f2119c82c7567987dd30b35cab5491d9e2
2022-12-30 06:58:01 +00:00
Andrey Cherkasov
8b5180c01f [java-inspection] LocalCanBeFinal: pattern variable support
IDEA-309250

GitOrigin-RevId: 649fa4e75d40c911fb24002396ba65542d1fc09d
2022-12-26 13:39:27 +00:00