Commit Graph

14925 Commits

Author SHA1 Message Date
Sergey Patrikeev
d855aa1965 IndexesExporter: do not require to specify temp path.
GitOrigin-RevId: 1f749df07e2b4ee0a5e37d13605c966805e4d5ae
2020-01-26 16:38:40 +00:00
Tagir Valeev
aeac779f23 IDEA-231425 Extract variable from expression should be disabled if expression defines a pattern variable that is used outside
GitOrigin-RevId: c8f8ebc567da14c2bb17b4b61234f9ca80fcf664
2020-01-26 13:39:43 +00:00
Tagir Valeev
26221c0641 IDEA-231237 Loop-to-stream conversion produces incorrect code if pattern variable is introduced
Also: pattern variable can be deleted via simple .delete()

GitOrigin-RevId: d3523f64d86de28d90b82d7bd98c1fd70567652d
2020-01-26 10:14:30 +00:00
Tagir Valeev
e542a2bf2f IDEA-231426 Inline pattern variable
GitOrigin-RevId: 8376adc5271b22d46cb50125b2d5243ab9e1a28e
2020-01-26 07:39:16 +00:00
Tagir Valeev
2324f6f5d4 PatternVariableCanBeUsedInspection: support reification
GitOrigin-RevId: 8be71dd89b077358c6f298b04acc25a1c78293b1
2020-01-26 07:39:16 +00:00
Vladimir Krivosheev
65a13ccd6d move executeConfiguration into ExecutionManager because well, this manager is responsible to execute configuration
GitOrigin-RevId: 66fc6fab6069b6fa389a704bfea3027994061789
2020-01-24 18:11:16 +00:00
Sergey Ignatov
10af1d8574 remove useless !! for notnull method invocations
GitOrigin-RevId: 9fe6335666e08b33fa85d92fe5b16ed3708cc673
2020-01-24 11:39:30 +00:00
Tagir Valeev
e43800cb62 IDEA-230729 Good code red: Illegal generic type for instanceof
GitOrigin-RevId: 03fa8e1c2e663e50bd0968423fe07a9a7e05a0d1
2020-01-24 08:03:38 +00:00
Tagir Valeev
09c6ede351 Use default values when generating custom constructor for records to avoid compilation error
Review ID: IDEA-CR-57600

GitOrigin-RevId: 847c2c4f925714400e7daa25360b8d66620a8328
2020-01-24 06:32:55 +00:00
Tagir Valeev
619bfa9963 IDEA-231280 Quick fix for compare() method can be used to compare numbers generates broken code
Also declaration is joined automatically

GitOrigin-RevId: f94ddf5ae3e94edffdb44cd56ad6bf8b3a9054b4
2020-01-24 06:32:55 +00:00
Tagir Valeev
74aec9510c IDEA-231242 "Split filter chain" produces incompilable code when pattern variable is introduced
GitOrigin-RevId: e0fdf12f0c9bf9ce7986d76c2262328864f2af9c
2020-01-23 11:08:32 +00:00
Tagir Valeev
762c20b6f5 IDEA-231238 False-positive nullability warning when using patterns
GitOrigin-RevId: 7c01148fde86284c0e1df215a39e1ef0808a1115
2020-01-23 11:08:32 +00:00
Tagir Valeev
99e82547b1 IDEA-229896 Unused variables: adapt for pattern variables
GitOrigin-RevId: 78dfe45581f1ed84050635410f834f3195dabfe1
2020-01-23 05:01:48 +00:00
Tagir Valeev
52ba5a3e10 Test for extract method containing pattern variable (IDEA-229901)
GitOrigin-RevId: 34ca9d82a66a7c3c71420b94ca9cbcd2fff7be68
2020-01-23 04:07:21 +00:00
Peter Gromov
75dce5e822 don't generate synthetic value* methods for cls anonymous enums
GitOrigin-RevId: ecac99579cb1fa4bfd1e9620c7b0866b2a220703
2020-01-22 19:02:10 +00:00
Eugene Petrenko
bb42fbe6cb reorganize code near IndexesExporter, open project after it was created in DumpJdkIndexStarter
GitOrigin-RevId: 35795b4806f2fe504e28d61ee456f678d0799cc2
2020-01-22 13:06:38 +00:00
Eugene Petrenko
41ee2f25f2 split DumpIndexAction into more classes/files
GitOrigin-RevId: b0897f3fa3100a15f7cd184a7ed05c14471608f7
2020-01-22 11:10:05 +00:00
Tagir Valeev
681a58ab7b IDEA-230701 IDEA doesn't resolve pattern variable defined in labeled scope
GitOrigin-RevId: afd36dfb5a20200bcab13a0efdc8ddf4884d959e
2020-01-22 10:38:13 +00:00
Eugene Petrenko
ff0b24139e Move DumpIndexAction to lang-impl (there is not need for it to be in Java modules)
GitOrigin-RevId: 2b789a9865f89865526c1f23f5b42eddad170065
2020-01-22 10:38:13 +00:00
Roman.Ivanov
4ca2f3f1e4 RecordAugmentProvider: do not try to create record accessors if component's type text is "record" : EA-220606
GitOrigin-RevId: fda9e80ca8a752a3f84fa82bfcc98d9381c4bab0
2020-01-22 08:33:52 +00:00
Tagir Valeev
6bd95c28cc JavaElementKind methods renamed; more CommonQuickFixBundle and JavaElementKind usages
GitOrigin-RevId: 93f5b6e974986efb0de86566875d77dc821ffea5
2020-01-22 06:03:40 +00:00
Tagir Valeev
6e8742ed2a Remove variable -> Remove local variable
GitOrigin-RevId: 3d20d29f9b7e2f0a3a989991af2788572449b0de
2020-01-22 05:13:16 +00:00
Tagir Valeev
dbc4ff53e2 JavaElementKind; more usages
GitOrigin-RevId: 03b93ab6274c6f94faab483529b08d6a7876342b
2020-01-22 05:13:16 +00:00
Roman.Ivanov
ae4ea98e4f IfStatementWithIdenticalBranchesInspection: better substitution in case of multiple variables : IDEA-229916
GitOrigin-RevId: 75783584e0d0d135123adefd86076d9fad4bdfd1
2020-01-22 02:08:17 +00:00
Roman.Ivanov
fa9c908137 IfStatementWithIdenticalBranchesInspection: more correct variable substitution : IDEA-229916
GitOrigin-RevId: b8abb67866823a84dac2b3dc4070e088926e0527
2020-01-22 02:08:17 +00:00
Eugene Petrenko
cbad891d9a shared-indexes - rework DumpIndexStarter, explicitly accept the file name of the index to generate, sort empty indexes list
GitOrigin-RevId: b317f852007492c9f2c73597bc632b76e4849fcf
2020-01-21 21:40:33 +00:00
Peter Gromov
021d6b9444 IDEA-230899 Wrong lambda-completion type inference
GitOrigin-RevId: 185f1a9f35895a5c891ac0586e4c46959f98f342
2020-01-21 19:03:18 +00:00
Vladimir Krivosheev
ba98224912 remove author (only some, where it is ok)
GitOrigin-RevId: 7dbab7524fe4efc5d17a04b95dee88b6f80fbe8d
2020-01-21 17:36:52 +00:00
Peter Gromov
5f050f4232 java: complete Object methods when superclass is unresolved
because they're resolved, and such situation can happen during refactoring when working completion would be nice to have

GitOrigin-RevId: 2116771c804561643105580992183b8add83003a
2020-01-21 15:37:39 +00:00
Peter Gromov
8e77928299 remove unresolved irrelevant references from completion test data
GitOrigin-RevId: b6906281d2dad6ee7f4500496d570964ecdbeccc
2020-01-21 15:37:39 +00:00
Peter Gromov
8a6a967e44 cleanup ImportHelperTest
GitOrigin-RevId: 626017daa2a97e9cfac706e6189b1241ce0a5fdd
2020-01-21 15:37:39 +00:00
Dmitry Jemerov
8c317a7572 Rename GCWatcher.tryGc to ensureCollected for better distinguishing from tryCollect
GitOrigin-RevId: 22ee7703fab2f8c7ca6849a80f6f0f5888cbda88
2020-01-21 12:15:28 +00:00
Tagir Valeev
b936699772 IDEA-229842 Convert compact constructor to canonical
GitOrigin-RevId: 6edd200e51ec300bf1068d2f040b837fea3f6e1f
2020-01-21 11:08:24 +00:00
Tagir Valeev
31696da421 IDEA-230563 Generate better custom constructor for records
GitOrigin-RevId: da6142ad0eafde53c7f355820d49cebf41c68797
2020-01-21 09:07:34 +00:00
Anna.Kozlova
7f69cec585 i18n java fixes
GitOrigin-RevId: c959538a5724a2057be6e5123b891250ac30b4d3
2020-01-21 07:34:21 +00:00
Tagir Valeev
42aff197e9 Unify TrivialIfInspection and IfConditionalModel
Now TrivialIf handles yield and method calls (IDEA-229850)
And SimplifiableIfStatement and ManualMinMaxCalculation handle implicit assignment

GitOrigin-RevId: 74a2fb9ab333afeb885e62127fa0c13724d90282
2020-01-21 06:38:24 +00:00
Peter Gromov
43aacb5f86 deprecate AbstractLayoutCodeProcessor.preprocessFile, support several nontrivial prepareTask activities in a row
GitOrigin-RevId: 76ce8d08e6f111e767bbffc4af3e22d4863b739e
2020-01-21 06:38:24 +00:00
Peter Gromov
6d71b92a62 make synthetic enum valueOf/values methods part of PsiClass#getMethods
because all other synthetic methods from records and plugins are also there
inspired by IDEA-CR-57031

GitOrigin-RevId: 9a8b345adaded83fe13980a28db5d9f9acc7450d
2020-01-21 06:38:24 +00:00
Tagir Valeev
395ea720e9 MethodReferenceBoundToNullable.java: added explanatory comment
GitOrigin-RevId: b84ec989638fea04df2dd10dac1a01638843543b
2020-01-21 04:38:18 +00:00
Alexey Kudravtsev
89ede691ea fix inspection for oneliners, add description
GitOrigin-RevId: d5efb89ce471c7102529196cf6947f75689afd1e
2020-01-20 16:07:37 +00:00
nik
42f8137929 [platform] make libraryType extension point dynamic (IDEA-225619)
GitOrigin-RevId: aa3117bc5bf370b65431e4ddc4d768e51802da97
2020-01-20 11:31:30 +00:00
Eugene Petrenko
2418cbf139 SdkLookup - include SDK home and version filters for resolution, use in JDKAuto
GitOrigin-RevId: 3d7c000e8790b0f32ccc65dfe59202ad2a99bfa1
2020-01-20 11:02:12 +00:00
Alexey Kudravtsev
e0cf98499b IDEA-83777 Show a warning, notice, ballon tip, inspection, or something else if file is with mixed line endings or the file has a different line ending / separator than specified in project settings
GitOrigin-RevId: 4e82c9106a458ce182559a050dab8f0a81c232ee
2020-01-20 10:36:42 +00:00
Peter Gromov
3362cbf3c3 java: add a test for completing java qualified name (IDEA-CR-57420)
GitOrigin-RevId: 44e8e12a362b8fc5cceb784988d230b4f21017d5
2020-01-20 10:36:42 +00:00
Tagir Valeev
099d5fcf7c Prevent local value leaks via non-trivial field access
IDEA-230097 Inspection incorrectly shows "The call to 'assert true' always fails" on a Junit callback test

GitOrigin-RevId: 5ae966d139391f72c7d015297b093523dba5e5e8
2020-01-20 08:01:26 +00:00
Tagir Valeev
b584986070 IDEA-230561 NPE when invoke 'Generate overloaded method with default parameter values' on record with duplicated constructors
GitOrigin-RevId: 69a003e043aaca55f933f17c9cf104cc678ed62c
2020-01-20 07:41:05 +00:00
Dmitro Batko
e3adc670ca mute test
GitOrigin-RevId: cd37842fa56a92122539c761316229659f9186a8
2020-01-20 06:12:25 +00:00
Dmitro Batko
5d7b2f37e0 restore file based index after shared index test
GitOrigin-RevId: 9cb7a6577af6fb00b5ecef8d8f06c67bd883d57e
2020-01-20 06:12:25 +00:00
Dmitro Batko
4a573c3c84 fix shared index id remapping
GitOrigin-RevId: 5e460235112b70c6cb65157aed7d34760d6111bc
2020-01-20 06:12:25 +00:00
Sergey Patrikeev
3b9e7be947 Add initial shared indexes test (not working yet).
GitOrigin-RevId: aec2e87bb4921d4d876ac16027a98a9f186f81e1
2020-01-20 06:12:25 +00:00