Commit Graph
4034 Commits
Author SHA1 Message Date
peter 64c770a1f6 IDEA-60581 Statement keywords presented when completing inside Java for loop 2017-07-17 14:14:22 +02:00
peter b48b6362ab IDEA-175834 "catch" completion with overwrite (Tab) generates incorrect code 2017-07-17 14:14:22 +02:00
peter b9839bd0e3 IDEA-175870 No "final" completion in a variable in a lambda 2017-07-17 14:14:22 +02:00
peter 932474e0d5 IDEA-175869 No "int" completion in a for loop 2017-07-17 14:14:22 +02:00
peter 54461cd71d IDEA-175670 Duplicate "enum.valueOf" suggestion 2017-07-13 19:29:54 +02:00
peter fddf282e16 IDEA-175677 Duplicate generic method suggestion when inheriting from a raw type 2017-07-13 19:29:54 +02:00
peter 90276fd30c disable "move initializer to" fixes on malformed fields 2017-07-13 17:58:13 +02:00
Dmitry Batkovich ff0ef41196 remove unused test data 2017-07-13 15:24:22 +03:00
Roman Shevchenko fb604512ea Merge remote-tracking branch 'origin/master' 2017-07-13 14:07:59 +02:00
Roman Shevchenko 7b9eab1dec [java] consistent PSI after removing one of multiple declarations (IDEA-175642) 2017-07-13 14:07:11 +02:00
Dmitry Batkovich 4e8024e4b4 qualify static const/method: static members from default packages should be visible for call inside default package 2017-07-13 13:56:46 +03:00
Roman Shevchenko ac8b9ae4ee Cleanup (formatting) 2017-07-13 12:55:25 +02:00
peter 3cd5240969 IDEA-175672 Duplicate "new char[]" suggestions 2017-07-12 22:03:49 +02:00
peter 4ce6e7c0df IDEA-175681 Duplicate "void" suggestion 2017-07-12 22:03:49 +02:00
Roman Shevchenko c60e7c4ecb Merge remote-tracking branch 'origin/master' 2017-07-12 19:35:10 +02:00
Roman Shevchenko dcbcfe3eb9 Cleanup (formatting) 2017-07-12 19:33:18 +02:00
peter adbd75d086 disable "invert if condition" on invalid negation 2017-07-12 16:50:37 +02:00
peter e44da4387a fix some missing keywords in java completion (IDEA-175673, IDEA-175669) 2017-07-11 21:52:24 +02:00
Roman Shevchenko b56c377f05 [tests] updates test data; formatting 2017-07-11 09:59:18 +02:00
peter 0e351d518b IDEA-175517 Generic Map Autocomplete Always uses "Object" as type instead of the actual type 2017-07-07 18:49:25 +02:00
peter 365d521519 IDEA-175018 Unwrap if produces red code 2017-07-07 17:53:00 +02:00
Anna.Kozlova 4e8a0d2dd8 don't loose type parameter bounds during super substitution (IDEA-175471) 2017-07-07 12:54:58 +02:00
Anna.Kozlova 9e0394a757 lambda constraints: proceed with return expressions (IDEA-175426)
lambda with formal types won't lead to additional constraint after return type constraint processing, thus it need to be processed additionally
2017-07-05 16:48:52 +02:00
Anna.Kozlova 006b9b1742 split declaration: detect same variables after declaration (IDEA-175261) 2017-07-04 10:30:37 +02:00
Dmitry Batkovich d55416e473 java smart completion sorting: split getter kind into 3 kinds with different priority (getter should have a higher priority then any relevant method chain) 2017-07-04 11:17:59 +03:00
Anna.Kozlova 8bd81c1d4c invert if: don't insert continue outside while loop (IDEA-175283) 2017-07-03 16:53:16 +02:00
Anna.Kozlova 1699697000 testdata for IDEA-175280 2017-07-03 16:53:16 +02:00
Anna.Kozlova 1f82ff1a9e testdata for IDEA-159545 2017-06-30 18:07:25 +02:00
Roman Shevchenko 298539fae0 [java] highlighting on generic throw types (IDEA-175073) 2017-06-30 16:03:26 +02:00
Roman Shevchenko 80bd33fc56 [java] type annotation highlighting on type parameters (IDEA-174317) 2017-06-30 14:38:56 +02:00
Alexey Kudravtsev 8037bdbfd1 annotate method if asked even it's (implicitly) inferred as NotNull 2017-06-29 15:55:13 +03:00
Anna Kozlova eb5c7ecb20 side effects in for stmt declaration (IDEA-172700)
transformation should be added before for stmt
2017-06-28 16:10:43 +02:00
Tagir Valeev cdce28fae8 MoveFieldAssignmentToInitializer: disable for self-references
Fixes IDEA-174956 "Move assignment to field declaration" produces red code
2017-06-28 10:34:33 +03:00
Tagir Valeev 9643e2d238 DeleteSideEffectsAwareFix: singular/plural message merged
Review: IDEA-CR-21623
2017-06-28 10:07:18 +03:00
Anna Kozlova 088510d098 skip warnings for constructor refs with varargs (IDEA-174074) 2017-06-27 19:47:53 +03:00
Anna Kozlova 339c14cd12 disable split into decl 7/ assignment for conflicting names (IDEA-173787)
for statement induces another declaration parent where another local variable could have been declared
2017-06-26 18:07:01 +03:00
Anna Kozlova 9e12271bd3 invert if: fix psi replacement (IDEA-174966) 2017-06-26 17:07:29 +03:00
Anna Kozlova 67819c1e1f disable move initializer to constructor for final fields with usages in initializers (IDEA-174973) 2017-06-26 16:14:34 +03:00
Anna Kozlova 4311ffcd29 add on demand static import: proceed with type arguments (IDEA-174965)
otherwise unused imports could be inserted and the references won't be collapsed inside <>
2017-06-26 16:11:56 +03:00
Anna Kozlova ed4a26a905 add single static import: ensure not available when conflict(IDEA-174983)
when methods (> 1) with same name exist in the containing class
2017-06-26 16:11:56 +03:00
Anna Kozlova fdf412aca7 transitive overriding methods check: applied for interfaces (IDEA-174806) 2017-06-23 18:19:42 +03:00
Anna Kozlova 0e5a7bca67 testdata for IDEA-174924 2017-06-23 18:19:42 +03:00
Anna Kozlova d9145615c7 testdata 2017-06-22 21:46:30 +03:00
Anna Kozlova db549e17d1 take into account container class type parameters: unchecked warnings 2017-06-22 15:54:30 +03:00
Anna Kozlova cbe6eb48ed take into account container class type parameters: return type
detection if return type mentions type parameters should include types specified on outer class
2017-06-22 15:54:30 +03:00
Anna Kozlova cba2ff917b take into account container class type parameters
when non-generic inner class is located inside generic outer, inference variables could be hidden in parent parameters (IDEA-174762; IDEA-174776)
2017-06-22 12:14:03 +03:00
Pavel Dolgov 0aa8430cb4 Java: Look for redundant assignment of a field in class and field initializers (IDEA-149587) 2017-06-21 14:45:30 +03:00
yarik ced545552a [java formatter] c style comments formatting supported. Note, only single line comments or comments with each line starting with asterisks will be formatted, since by using /* and */ you 2017-06-20 14:48:26 +03:00
Anna Kozlova b6482f44a1 add static import: use existing import name (IDEA-174647) 2017-06-20 11:32:03 +03:00
Anna Kozlova 5d8e3f67a1 don't override first field by same named second (IDEA-174523) 2017-06-16 11:53:53 +03:00