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
Anna Kozlova
e0220bad1d
java inference: don't infer from compound assignment (IDEA-247465)
...
GitOrigin-RevId: e8414acd849cf7aa0ddee18be30e9226a2b53541
2020-08-18 11:11:09 +00:00
Anna Kozlova
8fc89fc6f5
java: add fix to expand 'var' type when type annotation is used (IDEA-248364)
...
GitOrigin-RevId: 826f1e07587dc4d85214f5d0cafd5776d3448a95
2020-08-18 11:11:09 +00:00
Anna Kozlova
212ef2f70e
java: type_use annotation applicability to var type checked (IDEA-248364)
...
GitOrigin-RevId: 2c3b97c897e0f995137658c3372d1899c7dc39fe
2020-08-17 20:55:24 +00:00
Tagir Valeev
ea5e79ca14
[java-inspections] StreamApiMigration: parentheses like (br).readLine()
...
GitOrigin-RevId: 9f71c7b1a41cd74abd0e51a0637a3da13ce955b6
2020-08-10 09:36:28 +00:00
Artemiy Sartakov
ec30bf3a97
Sealed classes: update hierarchy fixes (IJ-CR-2554):
...
1. add missing same file inheritors to permits list during safe delete or create subclass refactoring
2. inline isParentSealed for inline to anonymous class refactoring
3. do not make sealed class final when removing last inheritor (just remove sealed modifier)
GitOrigin-RevId: acf3652f12144446116c5d71ea1722b06b9f6b92
2020-08-10 09:19:20 +00:00
Ilyas Selimov
39c3b20e3d
[java-i18n] fixes
...
GitOrigin-RevId: 6c6aa131594515157bad57a25703e147cd529f88
2020-08-06 06:17:39 +00:00
Peter Gromov
457c7b42b6
java: disable AddOnDemandStaticImportAction on broken code where it'd break stub-text consistency otherwise
...
GitOrigin-RevId: 705892a1471eff7797a1fe2abfcbd320849dd76e
2020-08-03 13:00:08 +00:00
Tagir Valeev
fcec11b91c
[java-inspection] StringConcatenationInLoops preview-friendly & fixed toString in null-safe mode
...
GitOrigin-RevId: b545a5a7acb3daa45b6aa4f675c819fefd70c350
2020-08-03 09:51:39 +00:00
Tagir Valeev
9ca4341d7f
[java-intention] BreakConverter#process fixed
...
isRemovable must be called before any modifications. Otherwise, previous modifications may affect its results.
GitOrigin-RevId: d05be1e54ba62e5ac18003bf54dab2abb16124ce
2020-08-03 09:51:38 +00:00
Tagir Valeev
5e28a88df9
[java-inspections] IDEA-247103 "Assert x != null" quick fix does nothing
...
GitOrigin-RevId: f1a0fa854bceb37349dfb893cf1bf2e0df301726
2020-07-31 10:25:51 +00:00
Tagir Valeev
4242b62d14
[java-highlighting] IDEA-246970 Local annotations should not be allowed in Java15-preview
...
GitOrigin-RevId: 1a1de1372304095197fdecf0c7b10bd8e9780442
2020-07-30 11:49:11 +00:00
Anna Kozlova
2022bfbf66
i18n: try choice format when ternary is used in concatenation (IDEA-246848)
...
GitOrigin-RevId: 2f4592ad2ee277075a72b2debc71d3e470084d0b
2020-07-29 10:43:44 +00:00
Artemiy Sartakov
fccea59571
InlineSuperClass: support sealed classes (IDEA-243902)
...
GitOrigin-RevId: 9e9d53ec7fa1ade7e0d1890fb5682c41da7c4f97
2020-07-29 10:15:32 +00:00
Artemiy Sartakov
69c40bf3bb
UnimplementInterfaceAction: sealed parent support (IDEA-243902)
...
GitOrigin-RevId: 9718672f06b58358200d5d7156adb0081e6154d7
2020-07-29 03:30:08 +00:00
Anna Kozlova
0f68daff23
i18n: test for shortenClassReferences during java fixes
...
GitOrigin-RevId: 2b813e4b08248b962f1fc1f4cb55dac01c46e7db
2020-07-27 11:23:25 +00:00
Tagir Valeev
874d090e21
[java-highlighting] Report static fields that collide with record components
...
Fixes IDEA-246454 bad code is green: record component already defined
GitOrigin-RevId: 1b2a48c0eb0b543ec9d60d7ed3cf2b3aabc3330c
2020-07-24 10:52:51 +00:00
Tagir Valeev
a3838dcd03
[java-i18n] Restore passed to non-nls variable behavior
...
GitOrigin-RevId: 8ec8b1f762120000cb492411bf0386e18325a7e1
2020-07-24 08:49:24 +00:00
Artemiy Sartakov
374593f5a2
Sealed types: report error when keyword 'sealed' or 'permits' used with enum or record (IDEA-246509)
...
GitOrigin-RevId: 6d3161990ce01f86524ceb91449a97272fa9abcd
2020-07-24 06:48:42 +00:00
Artemiy Sartakov
adb9a855a5
FillPermitsListInspection: updated messages, added test (IDEA-243901)
...
GitOrigin-RevId: ef4f475c5139fa7c351b5464fa67e1614db9e038
2020-07-23 13:42:54 +00:00
Tagir Valeev
6cfec9484e
SplitFilterAction: allow parentheses around lambda
...
GitOrigin-RevId: e83bfe28747e7e41e96ec430ba754507a0cb5b77
2020-07-23 09:36:19 +00:00
Peter Gromov
0cb5839b13
IDEA-246339 Do not suggest stream methods on method reference completion
...
GitOrigin-RevId: a72a1bda98f47056b893c31b1d0f894df3ced82a
2020-07-22 15:09:00 +00:00
Peter Gromov
b8dc92e383
fix for EA-234762 - CCE: StreamConversion.generateStreamSuggestions (IDEA-CR-65315)
...
GitOrigin-RevId: 7c04c7efa0523bfeeb7fa2932ec7e9535ca23425
2020-07-22 15:08:59 +00:00
Anna Kozlova
5fcbd6cb28
java deprecation: don't highlight lambda if target functional interface is deprecated (IDEA-246336)
...
javac doesn't report such cases and most probably method with functional interface must be deprecated as well, so deprecation would be visible; otherwise too much code would be crossed out
GitOrigin-RevId: b75feb5a4052d6da9355bda1f37374c66d964b29
2020-07-22 08:34:34 +00:00
Artemiy Sartakov
7a3bb2b2ef
FillPermitsListInspection: highlighter test fixed (IDEA-243901)
...
GitOrigin-RevId: 75b0059206e1122c04844e98f5c7efd6c5600702
2020-07-22 06:45:57 +00:00