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
Anna Kozlova
576590686d
java: fix repeatable annotations check when non-annotation type is passed as value (IDEA-250935)
...
GitOrigin-RevId: 7f819cfa97ac8fe49e58e3dc2e4c13e42f724963
2020-09-21 13:36:34 +00:00
Tagir Valeev
a0f0dabaa4
[java-highlighting] IDEA-246748 Remove support of C-style array declaration in record components
...
Actually suggest a fix if somebody uses it
GitOrigin-RevId: 57ee72ebdc99ebe506a88696bf37f9319cdbcc33
2020-09-21 09:44:54 +00:00
Andrey.Cherkasov
eb5e81dcb4
SuspiciousTernaryOperatorInVarargsCallInspection created: IDEA-244144
...
GitOrigin-RevId: cc56e98bf46b87d1b685177a72bccfd4fc80a596
2020-09-18 23:04:15 +00:00
Tagir Valeev
f9d1650fd8
[java-psi] Tolerate unparseable record component type (IDEA-250933)
...
GitOrigin-RevId: 813982a27750455f74d92ea48931096b389c6b37
2020-09-18 04:22:09 +00:00
Tagir Valeev
0bdc0d744a
[java-highlighting] IDEA-250951 Record accessor for the record component with ellipsis type produces a red code
...
GitOrigin-RevId: 7d2a1ddf7686a07cd4591c4c17d758c1cb203940
2020-09-18 04:16:18 +00:00
Andrey.Cherkasov
50af51d8d1
Support the case when then array initializer is taken into parentheses; more attention to comments in fix: IDEA-238645
...
GitOrigin-RevId: d4557daa9b37e9f103b6453d9e0ad3a18df0a870
2020-09-16 12:30:36 +00:00
Andrey.Cherkasov
d6ecf8f1f0
Fixes after review: IDEA-249165
...
GitOrigin-RevId: 5f90b50bd298dbc73283a6b2e78267483211c111
2020-09-15 21:23:00 +00:00
Tagir Valeev
390a408fa0
Bundle ICU4J; create NlsMessages to format duration and and/or lists
...
Fixes IDEA-247854 Formats#formatDuration is not localizable
GitOrigin-RevId: adb56cac0ecc7c47a644887e3eb17e9ca26b47bd
2020-09-15 04:50:16 +00:00
Andrey.Cherkasov
6100adc63f
IDEA-238645 Test fixes and some refactoring
...
GitOrigin-RevId: 5a3ac649c4639a0a2981608c1f503fbea72ce3be
2020-09-15 01:56:30 +00:00
Anna Kozlova
34526b2b5c
java error message: explicit method reference ambiguity (IDEA-250654)
...
GitOrigin-RevId: 1fc5f577f298a7f874a111866a394aa7a6c09cc0
2020-09-14 18:40:35 +00:00
Artemiy Sartakov
859a8fa5ba
ExtendSealedClassFix: fix added (IDEA-249603)
...
GitOrigin-RevId: d47a517c15f0a011fae581db7aacf4b1a76bad1b
2020-09-10 09:55:47 +00:00
Anna Kozlova
53abd82cb5
java unused classes: filter usages in imports (IDEA-249621)
...
GitOrigin-RevId: 8242899271b7ffb9222b7814483e5be61c9a7726
2020-09-08 10:41:50 +00:00
Andrey.Cherkasov
080b533383
Fixes after code review: IDEA-249165
...
GitOrigin-RevId: db35ebb920618b5e2105715406c1e24eb50bb71a
2020-09-08 07:31:16 +00:00
Tagir Valeev
a7fbd25b9e
[java-intention] MoveParenthesisFix: remove unnecessary MethodCandidateInfo check
...
It prevented from finding single correct version if multiple overloads are available
GitOrigin-RevId: 8759aaaee8f0b7cce044a3bf447661e5ea30dabe
2020-09-07 10:28:38 +00:00
Bas Leijdekkers
e310b0c94c
inspection warning text improvements
...
GitOrigin-RevId: 9aaad61ae52463727c77930af532258ea16dd1da
2020-09-04 10:23:25 +00:00
Andrey.Cherkasov
a65ac28d32
RedundantFileCreationInspection created: IDEA-249165
...
GitOrigin-RevId: 2d8ea0c12c2320d5f8b0e685b9a047bf3f972852
2020-09-04 09:42:42 +00:00
Anna Kozlova
a29e517758
java shebang outside of source roots;tests (IDEA-205455)
...
GitOrigin-RevId: 571d6c8c5bef490bb933534765a73eb030814182
2020-09-03 10:08:09 +00:00
Tagir Valeev
5b88621295
[java-intentions] IDEA-249810 Automatically fix closing parentheses in nested calls
...
GitOrigin-RevId: 9447905d0f2fda68b7f61b9310088b2f109d6b0e
2020-09-03 03:45:03 +00:00
Tagir Valeev
a0f9fd146b
[java-i18n] More uniform call-chain support; fixes property test with parentheses
...
GitOrigin-RevId: 7f91d71dd6e87771165b35a33f322533f64a49ca
2020-09-01 09:28:19 +00:00
Anna Kozlova
056ee5b158
java overload resolution: check constructors by name of the containing class (IDEA-249525)
...
GitOrigin-RevId: 30fe9e5615f36361bba40b740719a274c9f6786b
2020-08-31 17:41:11 +00:00
Tagir Valeev
fe46b9e54d
[java-highlighting] Test for IDEA-249356 "Variable might not have been initialized" error in a valid Record constructor
...
Was fixed in 4dc903ae8f8bc500d839ef469ac2d8f9e3ac2f3b
GitOrigin-RevId: c20944b6a79f6c2d112413f77899d525c4e78f8a
2020-08-31 03:58:16 +00:00
Anna Kozlova
316376de9c
java: fix cache disabled due to recursion prevention (IDEA-249293)
...
protected constructor in the anonymous' base class may lead to recursive hierarchy build
GitOrigin-RevId: 3c03c12ad6bf0d9cdf1480daa93f36ef5448a803
2020-08-28 07:44:03 +00:00
Anna Kozlova
a2e3d7e5ab
java: reject diamonds in anonymous classes with non-private methods (IDEA-248972;IDEA-248973)
...
GitOrigin-RevId: 5300c91c601dd59f3a020ac6a6627517aaca68c7
2020-08-27 11:11:51 +00:00
Anna Kozlova
9fe8cbf7c9
fix testdata
...
GitOrigin-RevId: cfd971b44341a6c0c218aa986da7d5d3101f54da
2020-08-26 16:51:25 +00:00
Anna Kozlova
6b78c18ce8
i18n: detect last concatenation (IDEA-249116)
...
GitOrigin-RevId: 5bf832e023bc24f721ece8eafc698e3e042c94b7
2020-08-26 16:23:57 +00:00
Roman Ivanov
335ac651a4
IDEA-249148: rename record component and accessor while renaming constructor parameter
...
GitOrigin-RevId: 3c6812b6a7496b0733187ed57044c8e0d4bc9b8c
2020-08-26 15:46:22 +00:00
Anna Kozlova
aa937e1f93
i18n: don't create nested choices, escape special symbols in choice sides (IDEA-247804)
...
GitOrigin-RevId: dcb56f8bf352bc8f656edd85242be6b3c70af34d
2020-08-25 11:17:27 +00:00
Artemiy Sartakov
da63c63aa6
Sealed classes: highlight generics in permits list as invalid (IDEA-247104)
...
GitOrigin-RevId: 1fff7366df4f797a16128db0d422eaf488852fa5
2020-08-25 07:30:29 +00:00
Artemiy Sartakov
c455f4b6d2
Sealed classes: highlight sealed annotation types as invalid (IDEA-247882)
...
GitOrigin-RevId: 3e988c0cc0a3f09cf817c542760a439ef8c9f1a4
2020-08-25 07:23:26 +00:00
Tagir Valeev
93479e1f99
[java-intentions] Remove 'Add constructor parameter' fix for record fields (IDEA-248139)
...
As record instance field declaration is illegal, this action is useless anyway and only adds confusion
GitOrigin-RevId: 4a1862f66c5a175fef675705e6af53ef5bae1f78
2020-08-24 12:08:39 +00:00
Anna Kozlova
a232f81e1a
i18n fix assignment: detect concatenations in rOperand
...
GitOrigin-RevId: 62ff07771c6b55807cddee1c0e514540c0b258d7
2020-08-24 11:19:48 +00:00
Tagir Valeev
8a830c1018
ReturnSeparatedFromComputationInspection: do not process if variable and return are in different scopes
...
Fixes EA-237085 - assert: ControlFlowUtil.isVariableReadInFinally
GitOrigin-RevId: 1f48700f3f08faf96f12b440b3fd54d735c50620
2020-08-24 10:42:56 +00:00
Anna Kozlova
af1c8c2574
i18n fix: traverse to the expression top level (IDEA-248707)
...
if one need to extract subpart of concatenation, it's required to extract a variable; similar to parts of polyadic expression
GitOrigin-RevId: 46cd1a75303b72ea64e9694617fb43f4d3da5982
2020-08-21 08:03:52 +00:00
Anna Kozlova
05ccb72166
i18n fix: fix choice format parameters ordering (IDEA-248709)
...
GitOrigin-RevId: 84fa26fcbd459bcf263df0adf224afebb6bdeb31
2020-08-21 07:10:41 +00:00
Tagir Valeev
fa03a31c48
Messages clarified, quotes added
...
GitOrigin-RevId: f191ad36a574aa3543758ce87ad0b03cc01cc550
2020-08-18 12:02:48 +00:00