Anna Kozlova
fd17a8bb75
language level 16, remove language level 14_preview (IDEA-257409)
...
GitOrigin-RevId: 1f9626ba04ffd9588b0cf9b8a9f699faa613359b
2020-12-14 20:59:58 +00:00
Roman Ivanov
bbcb50af87
JavaParser: parse yield() as call
...
GitOrigin-RevId: 31b4b0f9687bbaa6d1df65e459dcbe05e5c2c6b4
2020-12-14 17:25:01 +00:00
Andrey.Cherkasov
99e697f12b
IDEA-253512: Fix SlowAbstractSetRemoveAllInspection
...
GitOrigin-RevId: 4629a9d2c9b72a7e4b9974bf7c4d93dea98fe7fe
2020-12-07 20:34:07 +00:00
Anna Kozlova
6a0c39b3ee
java: missed type cast suggestion on annotated types (IDEA-256942)
...
GitOrigin-RevId: 86dd16b919e602d375267b868c84384eb4e097cd
2020-12-04 21:20:39 +00:00
Tagir Valeev
58a638bab9
[java-tests] Record rename tests moved to RenameFieldTest
...
GitOrigin-RevId: d6b5c15752a7e821829caf55db968bc67ebffa8d
2020-12-04 08:06:39 +00:00
Tagir Valeev
7c62cd67fe
[java-highlighting] IDEA-256804 Highlighting bug when using JDK 15 Records
...
GitOrigin-RevId: fd7fe3f1bcfe89e65f754038b4021ac003abb9f7
2020-12-04 08:06:37 +00:00
Andrey.Cherkasov
95a12db895
IDEA-253512: Fixes after review
...
GitOrigin-RevId: 0c9d42259d6a5169c449b536aa4e7b982446b10a
2020-11-30 15:12:44 +00:00
Anna Kozlova
3a646d1f0c
java create local from usage: do not duplicate comments inside variable initializer (IDEA-256107)
...
GitOrigin-RevId: 3f9298e0d38ca0840a57922a7b9eb23c27277668
2020-11-26 12:11:11 +00:00
Andrey.Cherkasov
d4dbc49dab
IDEA-253512: Warn about possible O(N^2) in AbstractSet#removeAll calls
...
GitOrigin-RevId: 76f59d4f019482420142cdf760be3f9e4c7f4d1e
2020-11-25 15:18:45 +00:00
Andrey.Cherkasov
54ac372e2d
Add tests for IDEA-173818
...
GitOrigin-RevId: 6646ccbf3c0ce543fba799d1a1f8ef5786ddc112
2020-11-24 18:20:43 +00:00
Tagir Valeev
d35974faf8
[java-inspections] IDEA-255926 Support streams generated by StreamSupport StreamToLoopInspection
...
Only for non-parallel streams
GitOrigin-RevId: 08b517f557f0c376cc504ac654a9353a66ae9014
2020-11-24 04:36:33 +00:00
Bas Leijdekkers
4b18db9bfb
Add quick fix to remove duplicate annotation without parameters (IDEA-249508)
...
GitOrigin-RevId: fea7daeb0bb40724325182d6041a20aa141fbbf2
2020-11-23 21:56:24 +00:00
Anna Kozlova
73742cfcaa
java records: rename component through implicit reference to the generated getter (IDEA-249683)
...
GitOrigin-RevId: 61907b128fb812c2b7df3769f2a80cc81ef43e54
2020-11-23 16:35:13 +00:00
Anna Kozlova
b93c815fbf
java records: component used in outer class: search/rename fixes (IDEA-248803)
...
GitOrigin-RevId: 658be1b62e613484e82b1e7f24f1157813021179
2020-11-23 16:35:10 +00:00
Andrey.Cherkasov
1a75f19cff
Don't warn about missing tag description on void methods
...
GitOrigin-RevId: 7125c41e5adfb4a45f96b6f5c9b6db12a9a0da6d
2020-11-23 13:25:11 +00:00
Anna Kozlova
cbff44d84f
java diamonds: avoid recursion prevention (IDEA-255486)
...
GitOrigin-RevId: bb6e3e45899ede6c36278bfd3c74813b1fc64b38
2020-11-16 14:52:30 +00:00
Daniil Ovchinnikov
932ea20745
IDEA-252714 [java] use anchor if request is coming from tree child of target class
...
GitOrigin-RevId: 8248fb4f61867773b41c5274b52f2e73b3867972
2020-11-12 14:55:22 +00:00
Anna Kozlova
c9c3a31e74
redundant suppression: search for text with suppressId in narrow element if applicable (IDEA-221643)
...
GitOrigin-RevId: 1b13bcda0f78e882ddd51a0d6eccb4a662a441c4
2020-11-09 17:12:46 +00:00
Bas Leijdekkers
0954a97685
IPP: make intention texts more distinguishable from each other
...
GitOrigin-RevId: 47d0fe080875ef6f68bac5fa3b2e836c2f5430c0
2020-11-06 13:43:59 +00:00
Anna Kozlova
f8a53347cf
java: split declaration & assignment: fix for very broken code (IDEA-254385)
...
forcePsiPostprocessAndRestoreElement may invalidate variable initializer
GitOrigin-RevId: 31b99804e5603cff36494ecbf9f98c1716b13d22
2020-11-02 20:18:09 +00:00
Anna Kozlova
ff667732f6
java: make error message more clear (IDEA-254372)
...
GitOrigin-RevId: 5c5bf42e6b375c2611ce996ca13a8404477e1eae
2020-11-02 17:28:44 +00:00
Anna Kozlova
9970306c8f
java method reference inference: keep additional inference variables when second search is not possible (IDEA-252839)
...
GitOrigin-RevId: 358b0408221aaf6e51dbf87867ae8f33ba0d0fde
2020-10-28 13:47:13 +00:00
Anna Kozlova
af05d31c48
java lvti: check for multiple declarations first to avoid registering error on a foreign element (IDEA-252806)
...
GitOrigin-RevId: a4640e8049680512a54909f6d82180f1421428ee
2020-10-28 13:47:10 +00:00
Anna Kozlova
48a0c3c03c
java create class from usage: disable for expected array type or expected super class while enum/record can't have any
...
GitOrigin-RevId: 042aed924d9fc35e1ca86ae8660a7a75fe45bd25
2020-10-27 13:27:22 +00:00
Anna Kozlova
dc51016e34
java: create class from usage: fix for patterns expression (IDEA-253733)
...
GitOrigin-RevId: e135c45026fc852ace913a57689380c5175f766e
2020-10-26 14:53:29 +00:00
Andrey.Cherkasov
3af0d4d509
IDEA-251250 fix texts for JavaDocLocalInspection
...
GitOrigin-RevId: 8897fd1a878deea3a724b8632fadd2e3b9095f06
2020-10-23 14:57:53 +00:00
Anna Kozlova
61231a0223
inspections: don't check redundant suppressions from inspections with global part (IDEA-208688)
...
local checks may be more pessimistic and it could lead to false positives
GitOrigin-RevId: 131000dee73567951cba939949e7abc267019eaf
2020-10-23 06:54:02 +00:00
Andrey.Cherkasov
ce5ed84489
IDEA-251250 fixes after code review
...
GitOrigin-RevId: 383931c2a4caf3b4856ebbe9869f83c180f81879
2020-10-22 22:50:10 +00:00
Tagir Valeev
5495f1f9ea
[java-analysis] Do not mark parameter as UNMODIFIABLE_VIEW if the method mutability is inferred
...
Fixes false-positive in RedundantUnmodifiableInspection
GitOrigin-RevId: 82cd0651ea87f62066a8a299ba3d5b572d617ab0
2020-10-22 07:46:18 +00:00
Andrey.Cherkasov
f746cdbdc4
IDEA-251250 add quickfix for JavaDocs annotations for inspection "tag description is missing"
...
GitOrigin-RevId: 144bc690511b94af09184780d3621ff1e31b9068
2020-10-21 11:33:22 +00:00
Anna Kozlova
64cb6979ca
redundant suppression: don't warn on "all" locally as global tools are not run (IDEA-253244)
...
GitOrigin-RevId: 3666dcf887e8a4735dee08f16e172c9272bfca24
2020-10-20 19:56:45 +00:00
Tagir Valeev
4ae81fd62a
[java-highlighting] IDEA-253230 Editor should produce a red code in records with @SafeVarargs in Java 16
...
GitOrigin-RevId: 5da7b9733e75140ad066b7e9b8af6adb95fea297
2020-10-20 02:30:03 +00:00
Andrey.Cherkasov
d8f40a6bf9
SuspiciousTernaryOperatorInVarargsCallInspection: fix test
...
GitOrigin-RevId: 8a62405481be34ff98f239ca345fc03d91dec520
2020-10-15 19:22:00 +00:00
Artemiy Sartakov
ec0518a125
Sealed classes: create class from permits list reference now adds appropriate parent (IDEA-251830)
...
GitOrigin-RevId: 67f0506d9521f9b14eb5cfb99164eb1ba37f03b4
2020-10-15 11:43:45 +00:00
Tagir Valeev
fdb5a1025d
[java-inspections] CodeBlockSurrounder: disable in enum initializers
...
We could devise something like ((Runnable)() -> {...}).run() but this kind of code looks too ugly.
Fixes IDEA-252688 Assertion error when applying fix to assert not null in enums
GitOrigin-RevId: 6f2122acb60cfcb074cc47e6bc599626fe5547fd
2020-10-14 05:42:27 +00:00
Anna Kozlova
9355c487e2
reverted java highlighting: give up check of @PolymorphicSignature methods (IDEA-251449)
...
appeared to be a javac bug
GitOrigin-RevId: 1d17221830606f5bdc8d0db78fa97f94e9548799
2020-10-07 07:46:32 +00:00
Artemiy Sartakov
b0c9f63799
Sealed classes: show create class fix instead of create type parameter in permits list (IDEA-251830)
...
GitOrigin-RevId: 4de0ea71c210e7da57f99b8295b7e511d9674120
2020-10-07 05:42:50 +00:00
Tagir Valeev
d833da5281
[java-inspection] IDEA-252155 False positive "Lambda can be replaced with method reference" when casting with additional bounds
...
GitOrigin-RevId: 2b752e6b47a0d53b05b4e7cd98064c5ce54e2904
2020-10-06 08:04:23 +00:00
Anna Kozlova
e5e87e397d
java resolve: fallback to resolve to ambiguous variable reference (IDEA-252122)
...
GitOrigin-RevId: 0076510ca5814c3db0a12d25aeea0e4105a6f4f5
2020-10-05 09:31:19 +00:00
Artemiy Sartakov
24ce3f8313
Java text blocks: support octal and unicode escape sequences (IDEA-251084)
...
GitOrigin-RevId: 00a5992c83b0824c7630e5e5657a1f564b2c766f
2020-10-05 08:36:10 +00:00
Anna Kozlova
ee301e1ee9
java switch expressions: reverted previous commit on inferring type with null result expressions (IDEA-251801)
...
appeared to be a javac bug, filed https://mail.openjdk.java.net/pipermail/compiler-dev/2020-September/015075.html
GitOrigin-RevId: 74bb18f3b3d82cdfbbad77a883d826b52549b9ab
2020-10-02 07:56:51 +00:00
Tagir Valeev
ebc61af5e8
[java-intention] CollapseIntoLoopAction: disable inside switch and on declarations (IDEA-251600)
...
GitOrigin-RevId: de00fe6b26f1969f8f9df0ac2d944ec76f402c8c
2020-10-02 04:09:06 +00:00
Andrey.Cherkasov
4d2632fc41
Fixes after review: IDEA-202309
...
GitOrigin-RevId: 542cdc5e1c3b401a6a3e37504cf9351212aac4be
2020-09-28 10:57:18 +00:00
Anna Kozlova
636bbda18f
java highlighting: give up check of @PolymorphicSignature methods (IDEA-251449)
...
GitOrigin-RevId: cf986ee46e52d6cabfc309776559481d42e6c5ce
2020-09-25 19:53:53 +00:00
Andrey.Cherkasov
6fbd744430
RedundantUnmodifiableInspection created: IDEA-202309
...
GitOrigin-RevId: d5a5e1f45ba0f6e0af786ca588caaa192cd4b554
2020-09-25 11:52:07 +00:00
Tagir Valeev
044abd82e1
[java-highlighting] Avoid TextRange computation until necessary
...
GitOrigin-RevId: 8d2b32d3b5353a1ff4b855acc779d69907f935af
2020-09-23 11:13:43 +00:00
Andrey.Cherkasov
f65fd090cd
Fix test IDEA-244144
...
GitOrigin-RevId: fe15366aaed97e7c3f0c07453a51d121ab3ab3bc
2020-09-23 09:12:25 +00:00
Andrey.Cherkasov
9845c0a0c2
Support parentheses, fix bug when the array branch has a primitive array, more tests: IDEA-244144
...
GitOrigin-RevId: 4c644d8b1e11869e4f3853763d09d7e0b91b5740
2020-09-22 12:24:19 +00:00
Anna Kozlova
0faebe5de7
java redundant cast: no semantic serialization when expected type is also serializable (IDEA-249705)
...
GitOrigin-RevId: 7ffe4dc7ef44099630afe65d7fb545337d982f7b
2020-09-21 20:35:20 +00:00
Anna Kozlova
cdbae12245
java redundant cast: check conditional poly expression after cast is removed (IDEA-251055)
...
GitOrigin-RevId: 32c2f18de0725a517f1ceb746edc8fa468b6fafa
2020-09-21 20:35:18 +00:00