Commit Graph
8400 Commits
Author SHA1 Message Date
Anna.Kozlova 031f71c5b3 redundant cast: don't highlight conditional with functional branches (IDEA-161971) 2016-10-04 18:45:14 +02:00
Anna.Kozlova 3332a677a6 allow functional interfaces in conditionals inside assignment or invocation contexts only 2016-10-04 18:45:14 +02:00
Andrey Starovoyt 2e7d6eb8af java: expression context for array.stream postfix template IDEA-157975 2016-10-04 16:54:06 +03:00
Tagir Valeev 50e727cbf4 IDEA-162051 Simplify !Stream.anyMatch(x -> !(...)) to Stream.allMatch() and so on 2016-10-04 17:16:59 +07:00
Yaroslav Lepenkin 71046b4a52 [Parameter Name Hints] show for single param null and this 2016-10-04 12:15:33 +03:00
Anna.Kozlova e3f966a2ed @SuppressWarning for foreach and try-with-resources parameters 2016-10-04 11:07:24 +02:00
Tagir Valeev a53a0f3d61 StreamAPI migration: limited sorting support 2016-10-04 15:55:00 +07:00
Tagir Valeev 10c8616d19 StreamAPI migration: propose to use any/all/noneMatch if next return is not true/false (using || or &&) 2016-10-04 15:32:19 +07:00
Tagir Valeev 6723bcc1ea ExpressionUtils#getAssignment now returns simple assignments only (not compound assignments) 2016-10-04 14:16:08 +07:00
Tagir Valeev 6629cc0fb1 Java8CollectionsApiInspection is split into 4 separate inspections 2016-10-04 13:15:57 +07:00
Tagir Valeev c6cf323132 ControlFlowUtils#statementBreaksLoop; StreamApiMigrationInspection#getInitializerUsageStatus simplified 2016-10-04 09:49:28 +07:00
Yaroslav Lepenkin 908a9d0d48 [Parameter Name Hints] show all single letter params 2016-10-03 19:44:51 +03:00
Yaroslav Lepenkin e435a24741 [Parameter Name Hints] do not show hints for builder pattern 2016-10-03 18:25:01 +03:00
Yaroslav Lepenkin e62abe8283 [Parameter Name Hints] show hints for single param methods if method returns something and has boolean parameter 2016-10-03 18:25:01 +03:00
Alexander Zolotov 9959adade3 Skip autopopup in comments handler should use context element instead of manual
retrieving element at caret (IDEA-161810)
2016-10-03 17:23:11 +03:00
Dmitry Batkovich cb30ac46f5 make SameParameterValueInspection be available in editor 2016-10-03 13:08:55 +03:00
Tagir Valeev 3c07adbe09 Stream API migration: replace with findFirst().ifPresent() chain 2016-10-03 12:43:45 +07:00
Tagir Valeev b53646340b Stream API migration: support nested anyMatch 2016-10-03 12:43:44 +07:00
Yaroslav Lepenkin 50c64f9c14 [Inline Param Name Hints] hint filtering changed:
- ignore all single length param names except "x, y, z, w, h"
- removed String class blacklisting
2016-09-30 22:47:17 +03:00
Dmitry Batrak c668aeedd6 IDEA-161866 Move Element Left/Right doesn't work in array typed annotation parameters 2016-09-30 15:35:11 +03:00
Tagir Valeev df36bfcf5f IDEA-CR-14049 missing getType() added; support array initializers in Optional map 2016-09-30 16:53:43 +07:00
Tagir Valeev 355973cb56 IDEA-CR-13980: comments handling is simplified (they just extracted and placed before the condition) 2016-09-30 16:32:25 +07:00
Tagir Valeev 738994f1c0 IDEA-161925 Stream API migration: support toArray conversion, fixed mapping to initialized array, fixed final variable status, clean up in RefactoringUtil 2016-09-30 16:12:57 +07:00
Anna.Kozlova 0881cae40e disable test 2016-09-30 09:33:28 +02:00
Anna.Kozlova cfb011e3e1 check inheritance for classes in local scopes to check that metho overrides another method (IDEA-161863) 2016-09-30 09:33:28 +02:00
Anna.Kozlova e052fabb42 conditional: ensure to convert type from parent to ll >= 1.8 so assignments would be correct, etc (IDEA-161854) 2016-09-30 09:33:28 +02:00
Tagir Valeev 7cb4480fd1 StreamApiMigrationInspection: references to non-final variables in intermediate operations were incorrectly handled sometimes 2016-09-30 10:23:12 +07:00
Tagir Valeev 5cbf3d5a9b StreamApiMigrationInspection: correctly handle anonymous classes/lambdas (IDEA-CR-14138) 2016-09-30 10:04:58 +07:00
Yaroslav Lepenkin e0a89da302 [Inline Param Name Hints] do not show hints for java.lang.String methods 2016-09-29 22:00:24 +03:00
Yaroslav Lepenkin 5c3214b57c [Inline Param Name Hints] show single string literal if there is more that one String parameter in corresponding method 2016-09-29 22:00:24 +03:00
Vladimir Krivosheev 2db4b63864 setAttributes — use equals 2016-09-29 17:03:17 +02:00
Yaroslav Lepenkin bcf5640e52 [Inline Param Name Hints] do not show single hint if it is string literal 2016-09-29 17:53:34 +03:00
Anna.Kozlova d9daa533c1 whole file pass: ensure restarted on all files after a change (IDEA-161890) 2016-09-29 16:03:15 +02:00
Roman Shevchenko ce56e331b3 Cleanup (missing annotations) 2016-09-29 15:55:12 +02:00
Roman Shevchenko 4f22f2e176 [java] Jigsaw package accessibility highlighting (source dependencies) 2016-09-29 14:11:09 +02:00
peter 53867e057f IDEA-161862 Lambda Expressions not showing as implementations of an interface 2016-09-29 11:31:20 +02:00
Tagir Valeev b9a06d65b9 IDEA-161861 Stream API migration should handle cases where result variable is not declared just before the for loop 2016-09-29 15:54:08 +07:00
Dmitry Batrak 1d6f2daa8d IDEA-161410 Quick Documentation: double opening angle brackets are printed as single brackets 2016-09-29 10:58:44 +03:00
peter 135a5d5c48 IDEA-153564 @Contract annotation for constructors; report non-trivial always failing calls 2016-09-28 16:46:40 +02:00
Yaroslav Lepenkin bbf06aac62 [Inline Param Name Hints] more ignored common methods 2016-09-28 17:20:00 +03:00
Yaroslav Lepenkin f3a059d01e [Inline Param Name Hints] ... for varargs param shown before param name 2016-09-28 17:03:19 +03:00
Yaroslav Lepenkin 669e4e1c4d [Inline Param Name Hints] hints shown for single parameter methods, except setters and well know method names like "println", "get", "contains"... 2016-09-28 17:03:19 +03:00
Anna.Kozlova 946991683d introduce parameter: ensure varargs are not substituted twice (IDEA-161779) 2016-09-28 09:16:48 +02:00
Tagir Valeev c3e57bf911 Java8CollectionsApiInspection: access modifiers, cosmetic, more comments in tests (IDEA-CR-14084) 2016-09-28 12:06:44 +07:00
Anna.Kozlova 457ad67441 unwrapped selection: ensure highlighting is set according to the text range (IDEA-161690) 2016-09-27 17:21:04 +02:00
Anna.Kozlova e149c3fa7d renamed static import -> import static (IDEA-161681) 2016-09-27 17:21:04 +02:00
peter 99df41927d fix typo in SmartPsiElementPointersTest.testAnchorInfoSurvivesPsiChange 2016-09-27 16:23:21 +02:00
Tagir Valeev bee98f0f07 IDEA-161259 Add Java-8 migration to use Collection.removeIf() where appropriate 2016-09-27 17:48:38 +07:00
Anna.Kozlova e6427398a9 static imports: increase limit to request index as the most of checks are postponed to be performed outside of index request; check excluded from import first as it depends on names only (IDEA-161679) 2016-09-27 10:32:54 +02:00
Anna.Kozlova 9863deb8d9 introduce functional parameter: exclude only selection range from used parameters check as for functional interfaces the whole code block is treated as selection's parent (IDEA-154299) 2016-09-27 09:22:01 +02:00