Bas Leijdekkers
63c4ffc2bc
global inspections: don't create incorrect link between class and its field initializer targets
...
GitOrigin-RevId: 838fc87a71409dc722a9821525845e573242a883
2022-06-29 20:02:33 +00:00
Bas Leijdekkers
e61d97c6e1
global inspections: build reference only once per element
...
GitOrigin-RevId: c7665b3fecc5cd8ea181ad7e844c191af1267dab
2022-06-29 20:02:27 +00:00
Bas Leijdekkers
f827bbd8c0
global inspection: remove unnecessary constant
...
GitOrigin-RevId: 24b63fd76da718118c034d3efb94b7f2b1c5c64b
2022-06-29 20:02:24 +00:00
Anna Kozlova
1796357cb5
[inspections] better naming
...
GitOrigin-RevId: 583501439c5744a094e4fae5ad7505cb9611e963
2022-06-29 08:37:31 +00:00
Roman Ivanov
a124d59a71
[java] highlight outdated patterns in java 19 preview
...
GitOrigin-RevId: 4c574402576701c81a1212619267c18e05233ff0
2022-06-28 16:44:54 +00:00
Roman Ivanov
4c02fc85a9
[java] check pattern guards and record patterns feature in HighlightVisitorImpl
...
GitOrigin-RevId: 691663582652efe8e54bcc50a5f99ae51da81a72
2022-06-28 15:41:21 +00:00
Anna Kozlova
37e5457c2d
[psi] ensure that cache in PsiExpressionsList#getExpressions is not corrupted during highlighting (IDEA-296766)
...
safer it would be to return array.clone() but there is a suspicion that it would to too expensive
GitOrigin-RevId: 9fd84fa2c3ff2d1d982d5747ec0f8f22fa220d5c
2022-06-28 15:34:01 +00:00
Tagir Valeev
0172526b21
Fix "Local variable used and declared in different 'switch' branches" warnings and some more
...
GitOrigin-RevId: 576b07775bb13f13b6e985ee81d3e790bdc7ba6b
2022-06-28 12:25:42 +00:00
Tagir Valeev
5effbdbc81
[java-inspections] Remove MakeMethodConstructorFix (unused)
...
The same action is performed by MethodNameSameAsClassNameInspection.MethodNameSameAsClassNameFix
GitOrigin-RevId: 909f9d9d98841338011a556387b3f310002d7c59
2022-06-28 12:25:39 +00:00
Andrey.Cherkasov
d4573c53c8
[java-inspections] "Remove unreachable branches" quick-fix breaks code on switch expression
...
IDEA-296911
GitOrigin-RevId: 1fdfb95aa6396476b40bf0d7be62a1617e70f858
2022-06-28 03:52:04 +00:00
Andrey.Cherkasov
96cd89dd5d
[java-inspections] False negative "Constant conditions & exceptions"
...
IDEA-296900
GitOrigin-RevId: 58bd64b886d5d2c5c359f34d1df2fdb639495114
2022-06-28 03:52:03 +00:00
Roman Shevchenko
f3c1d03868
[project] openjdk.java.net ➜ openjdk.org
...
(updating direct links and issue navigation templates)
GitOrigin-RevId: 4e3ee1bdd3e620f2ca57533977cedde18377857f
2022-06-27 09:51:10 +00:00
Bas Leijdekkers
c88ffa805f
global inspections: fix another deadlock (IDEA-296739)
...
GitOrigin-RevId: f71b7dfe8190994a2e63f5cfcb293f1f8a813177
2022-06-25 16:20:58 +00:00
Bas Leijdekkers
91d3df1b63
UnnecessaryModuleDependencyInspection: fix warnings
...
GitOrigin-RevId: 691543a437c06ebaa507cac41f791e9f88443ffd
2022-06-25 16:20:52 +00:00
Bas Leijdekkers
e235f8e5bc
[java] visibility inspection: compare strings using equals instead of ==
...
GitOrigin-RevId: 3f0a199afcc097608bdafafcde533520bb6e4073
2022-06-25 16:20:50 +00:00
Anna Kozlova
2fd039b5eb
[java] redundant cast: don't suggest to remove cast in switch branches without expected type (IDEA-296622)
...
GitOrigin-RevId: 24bebef33ad6d01861a68df1470f2ed2f454c4c8
2022-06-24 20:48:12 +00:00
Tagir Valeev
1833f27b0b
[java-dfa] Rewrite AssertJ/Google Truth support with inliner
...
Fixes IDEA-277745 Wrong 'value is always null' warning inside 'describedAs' parameter after 'assertThat'
Fixes IDEA-296655 No support for AssertJ hasSize() in nullability analysis
GitOrigin-RevId: 40e51468d5902f9938a67a600c93b7e7b3b15a26
2022-06-24 15:56:23 +00:00
Alexandr Suhinin
a48a3dc302
[error highlighting] IDEA-296703: fix incompatible type error for PatternGuard
...
GitOrigin-RevId: cc07c18f6997279e14cad91a5067b21ac6691561
2022-06-24 09:32:29 +00:00
Bas Leijdekkers
1a1048caac
global inspections: fix utility class recognition
...
Kotlin class without members is no longer considered utility class
GitOrigin-RevId: 537fc511d1fcfd6a1e9ccf37e0a40d730eeae537
2022-06-23 08:13:46 +00:00
Anna Kozlova
900bf0bd8f
[inspections] kotlin properties: support restoring as fields
...
GitOrigin-RevId: 397b45dfc6e13b58c153262c64d9075993c04c48
2022-06-22 16:00:13 +00:00
Anna Kozlova
eef6578119
[uast] remove unreachable code
...
GitOrigin-RevId: baffbd9c616a849d296245ceab71a45593a6d72e
2022-06-22 16:00:10 +00:00
Anna Kozlova
e204756765
[inspections] remove redundant read action
...
GitOrigin-RevId: de7641d8d4dcd2217c2c520ac367a2c903b0d569
2022-06-21 13:33:03 +00:00
Anna Kozlova
2ce894e6eb
[inspections] avoid requesting external name for fields
...
GitOrigin-RevId: 5de036f97690302075baf7d9cb3d4f088ea4d0be
2022-06-20 13:16:07 +00:00
Tagir Valeev
11595f3956
Fix most of JavaDoc <-> code mismatch warnings
...
GitOrigin-RevId: 9a87a8b90993b56cd045722734c5c5f466601ae3
2022-06-20 12:02:27 +00:00
Tagir Valeev
0a4ec36419
[kotlin-dfa] Get rid of PsiElement context in many places
...
GitOrigin-RevId: 878ac27a9356ca70341e547dd7d8df4a94ea5f61
2022-06-20 12:02:19 +00:00
Tagir Valeev
84b450fbdc
[java-highlighting] Avoid wrong error message when if statement is directly inside the switch
...
IDEA-295898 Good code red. 'Patterns in switch are not supported at language level '18''
GitOrigin-RevId: 5efad2270e30c237a9906c6f29950dc9980b7e1d
2022-06-15 19:18:27 +00:00
Anna Kozlova
dda76c47ca
[kotlin] enable deprecation for removal error in kotlin
...
GitOrigin-RevId: 9ec0df05c1110d43aac20272ecfb35fa23f22d76
2022-06-15 18:17:13 +00:00
Bas Leijdekkers
a8fd719884
Global inspections: fix deadlock (IDEA-295739)
...
GitOrigin-RevId: 11eb4efb22d64839ad911df6002c6c967de734ba
2022-06-13 14:03:11 +00:00
Alexey Kudravtsev
3f2a2eaf34
JavaElementVisitor: notnull
...
GitOrigin-RevId: e4b356ce28796e2631b0a631b5108e0348b77baf
2022-06-11 23:31:48 +00:00
Bas Leijdekkers
2cd4a4b468
remove 'new' keyword fix should also remove type parameters & static methods in interfaces are not inherited (EA-411014)
...
GitOrigin-RevId: 9e847af44775ebfa8e438a690b942e50049fccc9
2022-06-08 11:14:32 +00:00
Anna Kozlova
2c8136599c
cleanup debug code
...
GitOrigin-RevId: 9968e703f43e1605f83820eb1ab76d59c8a394d0
2022-06-07 06:24:13 +00:00
Anna Kozlova
b582eff8c3
[unused declaration] take into account non-local returns (IDEA-295261)
...
GitOrigin-RevId: 772f91c8fe5614b0075394979f383e2810a6d3a8
2022-06-07 06:24:10 +00:00
Tagir Valeev
3a45b11030
[kotlin-dfa] KTIJ-21924 Kotlin DFA: false-positive when upcasting array
...
GitOrigin-RevId: d79fa2412de23ba99d39cec5ed00abbd8a15ccce
2022-06-06 15:24:39 +00:00
Bas Leijdekkers
4731580745
Global inspections: remove a bit of unnecessary code
...
GitOrigin-RevId: 2e1d77b32aadee4f048955670bfc6edb992d1e87
2022-06-06 11:52:52 +00:00
Alexey Kudravtsev
ca680aa4d2
fix signatures: add correct wildcards
...
GitOrigin-RevId: 483d4ae0f0fdca915b666013e145062e2de1ea14
2022-06-05 17:14:38 +00:00
Mikhail Mazurkevich
27fee7320a
[workspace model] Rename findModuleBridge to findModule
...
GitOrigin-RevId: 12f6f60fd8a6b2b7ade4653298696a58f3f0f29c
2022-06-03 15:01:44 +00:00
Anna Kozlova
6e59e68a61
[unused declaration] special treatment for kotlin callable parameters (IDEA-295201)
...
GitOrigin-RevId: a0e943f2874b8149dd7aadbba1b1dc6ceb808286
2022-06-01 19:50:18 +00:00
Bas Leijdekkers
231ea415ca
Global inspections: consider Kotlin primary constructor parameters always used (relates to IDEA-293736)
...
GitOrigin-RevId: 42d6ac9d09725fca3e2159564d186e15fd476e3f
2022-06-01 18:30:24 +00:00
Tagir Valeev
6b91c94152
[java-dfa] Unused class TryFinally removed
...
GitOrigin-RevId: 023fa811013eb42fd6ce0681227350ec2eb05fa5
2022-06-01 18:11:46 +00:00
Tagir Valeev
b15758f760
[jvm-inspections] getKotlinProperty: avoid expensive toUElement, unless the method can be a getter
...
GitOrigin-RevId: ac1fc73d935b997fe17d9cce0f87414ee189ccaa
2022-06-01 18:11:41 +00:00
Anna Kozlova
4586e67197
[inspections] return from light elements utility
...
GitOrigin-RevId: ab9aabd6bec61af95b06d044eb17a736230b75a5
2022-06-01 13:54:33 +00:00
Tagir Valeev
64765a47a0
[kotlin-dfa] Find top reference to make getKotlinType() working properly; also add a defence condition
...
Fixes KTIJ-21908 java.lang.IllegalArgumentException: Not reference type: TOP; constant: PsiEnumConstant:COMPONENTS_LOADED
GitOrigin-RevId: 7b15f75fbe04392c123f72c3e746e69868462266
2022-06-01 11:20:18 +00:00
Anna Kozlova
00ad78e136
[java] JavaFileManagerImpl migrate to new workspace api (IDEA-295149)
...
GitOrigin-RevId: d1e77018cc010eb0867c1313d821e0619ec1406a
2022-06-01 08:00:59 +00:00
Andrey.Cherkasov
590bf3a052
[java-highlighting] Small fix (IJ-CR-24912)
...
GitOrigin-RevId: 485b1378c4ab80adcc2a11e171bcc94f33b5b37b
2022-05-31 12:47:44 +00:00
Andrey.Cherkasov
c977930e50
[java-highlighting] Stabilize the order of missing branches
...
GitOrigin-RevId: cca86a5d95906306a0a4c68b976e8d6950e3cb72
2022-05-31 12:47:41 +00:00
Alexey Kudravtsev
0ff1dc08f1
simplify, avoid Optional wrap/unwraps in critical path (towards fixing LAHPT.testAThinlet)
...
GitOrigin-RevId: 24272f0f96f405d633f089e252da063265d3a809
2022-05-31 12:28:44 +00:00
Alexey Kudravtsev
3d64bb1358
small optimization: do not calculate fix prematurely
...
GitOrigin-RevId: 1202f3bd0171db9925391b02754ee67920abd3bb
2022-05-31 12:28:38 +00:00
Anna Kozlova
f10a9e728f
[java] read --patch-module option from compilation settings (IDEA-180982)
...
compare vFiles
GitOrigin-RevId: 3f0bd2e8fdc24a8be54e6ae116f5e9275216ffcc
2022-05-30 20:30:50 +00:00
Anna Kozlova
c75dff50bd
[java] reuse highlight property
...
GitOrigin-RevId: 861ec1c3547801fa9812d21e1a2a06cb8edeada8
2022-05-30 20:30:47 +00:00
Anna Kozlova
04fac427d2
[java] unused declaration: process lambda body (IDEA-284040)
...
avoid dbl processing, ensure method references are processed as well
GitOrigin-RevId: 31a82a8a69eeca2414d1ba0934669d5379a87f4a
2022-05-30 20:30:38 +00:00