Commit Graph
5569 Commits
Author SHA1 Message Date
Tagir Valeev 9fe8c96b78 OptionalUtil#getMapTypeArgument: check nulls; remove 0-arg check 2016-11-11 12:02:36 +07:00
Tagir Valeev 7e574d661c IDEA-163764 "Replace Optional.isPresent() checks with functional-style expressions" create uncompilable code
IDEA-163463 Stream API migration: type argument before map appears sometimes when it's unnecessary
2016-11-11 11:28:44 +07:00
Anna.Kozlova fd89b0ed18 introduce variable: distinguish lambda parameters but allow param free expressions (IDEA-163785) 2016-11-10 17:47:28 +01:00
Anna.Kozlova 848c1f215c inplace change signature: no detection, explicit action 2016-11-10 10:52:14 +01:00
peter b261c7fd57 IDEA-163678 "Passing non-null argument to 'Optional'" warning expected 2016-11-09 14:31:09 +01:00
Tagir Valeev ff8a32476a StreamApiMigrationInspection: NPE fixed (EA-91387) 2016-11-09 12:27:15 +07:00
Tagir Valeev 29cefc5859 Java8ReplaceMapGetInspection: missing statements.length check is added (EA-91331) 2016-11-08 15:51:02 +07:00
Anna.Kozlova 08c5a244c3 reigiable local classes inside static methods (IDEA-163615) 2016-11-07 18:56:11 +01:00
Tagir Valeev 21564bba7b IDEA-163627 Simplify optional.isPresent() inspection could better handle some specific cases
IDEA-163462 Simplify Optional.isPresent() ? Optional.get() : ...
2016-11-07 17:23:00 +07:00
Tagir Valeev acbb7bddda StreamToLoopInspection: added ExplicitCollectTerminalOperation; StreamVariable simplified; guard checks added (IDEA-CR-15249) 2016-11-07 12:19:09 +07:00
Vladimir Krivosheev db8926c1b9 fix test data — remove inherit-compiler-output="false" 2016-11-04 16:32:30 +01:00
peter 55a07ffd43 IDEA-163489 Inspection "Constant conditions & exceptions" with option "Suggest @Nullable annotation for methods" warns about lambdas 2016-11-04 15:15:16 +01:00
Roman Shevchenko 936e531db3 Merge remote-tracking branch 'origin/master' 2016-11-03 16:59:53 +01:00
Roman Shevchenko 7c8d607d8d [tests] test data inlined 2016-11-03 16:59:34 +01:00
Anna.Kozlova b8e4985205 don't erase method invocation type iff unchecked conversion was required during additional constraints processing (IDEA-163503) 2016-11-03 16:38:40 +01:00
Tagir Valeev f04509a776 IDEA-163302 Suggest to use IntStream.boxed() if manually mapping to an Integer 2016-11-03 11:26:21 +07:00
Tagir Valeev ef215da116 StreamToLoopInspection: disable for raw types (IDEA-163493), disable for unresolved method references 2016-11-03 09:47:40 +07:00
Anna.Kozlova 8067101fcf EA-91047 - IOE: PsiJavaParserFacadeImpl.createExpressionFromText 2016-11-02 17:02:29 +01:00
peter 8c54e84341 don't suggest to make parameters for field @NotNull if the parameters don't belong to a constructor 2016-11-02 16:50:35 +01:00
Anna.Kozlova d336733d3e ensure bounds are promoted on derived type otherwise bounds from super could appear on unbounded wildcards (IDEA-162882) 2016-11-02 15:51:14 +01:00
Anna.Kozlova bf259fed79 unrelated defaults when one interface overrides 2 unrelated (IDEA-163469) 2016-11-02 15:51:14 +01:00
Anna.Kozlova bed1e83f3d migration: ensure migrated refs are shortened (IDEA-163298) 2016-11-02 10:06:44 +01:00
Tagir Valeev 0fb67d4f9d StreamToLoopInspection fixes: toArray intermediate list type fixed; keywords are filtered out from possible var names; context added to expression passed to BoolUtils; supported inside method calls 2016-11-02 13:50:36 +07:00
Tagir Valeev 0ae5c0f1ae StreamToLoopInspection: fixed flatMap with method reference argument 2016-11-01 18:46:15 +07:00
Tagir Valeev 9caa6d5ede IDEA-161198 Migration from Stream API back to for loops 2016-11-01 15:38:57 +07:00
Tagir Valeev efa6763db1 ComparatorCombinatorsInspection: fixed for incomplete statement (EA-90916) 2016-11-01 09:38:18 +07:00
Pavel Dolgov 689d26b3e2 Java: Quick fix for importing a package the current module doesn't read by adding "requires" statement to the module info (IDEA-162762) 2016-10-31 16:42:38 +03:00
Bas Leijdekkers 50d645e256 Allow "Convert 'compareTo()' expression to 'equals()' call" intention in more cases 2016-10-29 20:50:04 +02:00
Anna.Kozlova 80a5866b23 super expression rules should not apply to this expressions (IDEA-163303) 2016-10-28 18:23:21 +02:00
Dmitry Batkovich 252be38f2d javac ast indices: fix find usages of class members: can't find usages in getter's method call 2016-10-28 12:42:54 +03:00
Dmitry Batkovich 04f6faf096 javac ast indices: more tests 2016-10-28 08:50:24 +03:00
Dmitry Batkovich 3c24f6bdb3 javac ast indices: more find usages tests 2016-10-27 22:57:27 +03:00
Dmitry Batkovich 93acac9284 java ast indices: add injected code find usages test 2016-10-27 21:20:48 +03:00
Dmitry Batkovich 4010cec385 java functional expressions: last one test-data fixed 2016-10-26 12:24:25 +03:00
Dmitry Batkovich 7b2d0c3d4a java functional expressions: remove ":" from toString() + fix test data according to 381bbbe 2016-10-25 23:33:11 +03:00
Tagir Valeev c8b125fb65 IDEA-163051 "Replace inefficient Stream API call chains ending with count()": fix leaves redundant casts
IDEA-163050 "Replace inefficient Stream API call chains ending with count()": highlighting
2016-10-25 12:27:51 +07:00
Tagir Valeev 6e3d0c6c0e IDEA-163082 "can be replaced with addAll" inspection suggests a recursive call; support "this" qualifier for collect/addAll conversion 2016-10-25 11:38:24 +07:00
Tagir Valeev 4ce59ee865 Stream API Migration: do not add type arguments if a type is a wildcard type 2016-10-25 11:10:08 +07:00
Tagir Valeev d51f09d0d5 Stream API Migration: fix cases when boxed collection is iterated with primitive parameter (inspired by PR https://github.com/JetBrains/intellij-community/pull/455 by FHannes) 2016-10-24 17:44:45 +07:00
Tagir Valeev 7620508bc3 Stream API migration: ignore mutable variables in nested lambdas/anonymous classes; add type argument to map/mapToObj calls where necessary 2016-10-24 11:01:06 +07:00
Tagir Valeev aff7104a99 Stream API migration: add narrowing cast if necessary when replacing += with sum() 2016-10-24 10:28:29 +07:00
Anna.Kozlova 9bcbdb68cb inference: register inference error when nested inference don't start as cached session already had errors 2016-10-21 18:07:07 +02:00
Anna.Kozlova 3797d3ea1c ensure ambiguity error presentation doesn't depend on previous calls to getSubstitutor() 2016-10-21 18:07:07 +02:00
Anna.Kozlova 260c6317c8 inline local: go through lambda/inner class hierarchy evenly (IDEA-162909) 2016-10-21 14:52:31 +02:00
Anna.Kozlova 8a276d0bf4 introduce variable: allow introduction of expression from inside for loop if independent from loop vars (IDEA-162911) 2016-10-21 14:52:31 +02:00
Tagir Valeev 3df2d1925d IDEA-162945 Stream API migration: support cases where variable is modified and reassigned 2016-10-21 15:09:35 +07:00
Tagir Valeev 8c6088647b IDEA-162875 Stream API migration: support conversion to BufferedReader.lines() 2016-10-21 12:10:10 +07:00
Anna.Kozlova 94105ecee4 inline to anonymous: allow to inline from library (IDEA-162893) 2016-10-20 19:04:25 +02:00
Anna.Kozlova bf60885576 inline chained constructor from library class 2016-10-20 19:04:25 +02:00
Anna.Kozlova 12554167e7 inference on incomplete code (EA-90195 - AIOOBE: PsiTypesUtil.getParameterType) 2016-10-20 19:04:25 +02:00