Commit Graph
26314 Commits
Author SHA1 Message Date
Tagir Valeev a94e87e968 StreamToLoop: inline simple common method references 2016-12-19 18:43:21 +07:00
Alexey Kudravtsev b99bb074c2 cleanup 2016-12-19 14:32:27 +03:00
Tagir Valeev 437d89ac15 StreamToLoop comparator support: insert parentheses if necessary 2016-12-19 16:50:08 +07:00
Tagir Valeev 9d8c54f279 TerminalOperation: PsiTypesUtil.getPsiClass -> PsiUtil.resolveClassInClassTypeOnly (IDEA-CR-16837) 2016-12-19 16:35:42 +07:00
Tagir Valeev 204a045f0a StreamToLoop: min/max: Comparators as lambdas/method references supported; Comparator.naturalOrder() and reverseOrder() inlined. 2016-12-19 16:35:41 +07:00
Anna.Kozlova d7f10b93e1 retrieve type from binary comparisons to detect applicable constants (IDEA-165557) 2016-12-19 09:40:53 +01:00
Tagir Valeev 606895246b StreamToLoopInspection: better solution for type correction on mutable collection results (IDEA-CR-16837) 2016-12-19 10:01:16 +07:00
Vladimir Krivosheev 8cddb9a432 cleanup — ModuleListener 2016-12-18 18:17:00 +01:00
Dmitry Batkovich c08f73e288 javac ast indices: get rid of Name#toUtf() usages 2016-12-16 19:08:03 +03:00
Dmitry Batkovich 20818e37af javac ast indices: reduce "--add-exports" options in BuildManager 2016-12-16 17:46:13 +03:00
Vitaliy.Bibaev 0ad57a49ab Merge remote-tracking branch 'origin/master' 2016-12-16 16:42:13 +03:00
Dmitry Batkovich 853bbd5e93 fix compilation 2016-12-16 16:20:40 +03:00
Vitaliy.Bibaev 3caab971c4 Merge remote-tracking branch 'origin/master' 2016-12-16 16:17:22 +03:00
Vitaliy.Bibaev 034b335b0c Reduce delay between progress updating in filtering 2016-12-16 16:07:57 +03:00
Dmitry Batkovich 063ec0416b javac indices: enable in all tests 2016-12-16 15:49:01 +03:00
Vitaliy.Bibaev 4c7a39918e Merge branch 'bibaev/integrated-memory-view' 2016-12-16 15:31:21 +03:00
Anna.Kozlova 562393b3a8 sanitize IDEA's module name to be valid java identifier 2016-12-16 13:09:24 +01:00
Vitaliy.Bibaev 51bdb10e67 Merge branch 'master' into bibaev/integrated-memory-view 2016-12-16 15:04:04 +03:00
Egor.Ushakov f8dd0c8baa IDEA-164680 Exception when creating Class Level Watch with stream().filter() 2016-12-16 14:18:08 +03:00
Rustam Vishnyakov 2e88acdebc Smart trailing spaces filter and implementation for indents on empty lines (IDEA-163554, IDEA-144196) 2016-12-16 13:50:40 +03:00
Anna.Kozlova f15f17c7b7 don't touch static imports in moved directories (IDEA-165125) 2016-12-16 10:56:48 +01:00
Tagir Valeev 4b066b1b90 StreamToLoopInspection fixed when collection result is non-trivial generic type involving ? extends wildcards 2016-12-16 16:43:58 +07:00
Vitaliy.Bibaev 59d6c4014d Set minimal delay for updating of progress of filtering. Fix bug in
cancellation of filtering
2016-12-16 12:38:46 +03:00
Vitaliy.Bibaev 60f7a0cfde Remove redundant files in Memory view, rename packages, add icons 2016-12-16 11:34:15 +03:00
Tagir Valeev 9c78db8af0 FunctionHelper: fix renaming in lambdas if autogenerated name conflicts with the existing one 2016-12-16 11:12:15 +07:00
Tagir Valeev cda8154dbc FunctionHelper#transform: newNames -> argumentValues; javadoc updated; cosmetics (IDEA-CR-16814) 2016-12-16 10:50:41 +07:00
Roman Shevchenko 61e02864a5 [java] recognizes Java 9's 'MODULE' annotation target 2016-12-15 18:37:45 +01:00
Roman Shevchenko 6485b3003c Cleanup (logging category) 2016-12-15 18:36:40 +01:00
Vladimir Krivosheev 8dd7582c01 speed up save — track inspection scheme state 2016-12-15 16:31:30 +01:00
Dmitry Batkovich 5e676d70f7 javac ast indices: do not check for up-to-date in tests 2016-12-15 18:12:46 +03:00
Anna.Kozlova 08163051f3 show class/package conflict only if corresponding subdirectory contains classes so there could be usages with ambiguous imports 2016-12-15 14:48:27 +01:00
Tagir Valeev 50223c222e Fix IDEA-165466 Stream API migration: automatically simplify emptyList().stream() to empty()
SimplifyStreamApiCallChainsInspection refactoring: simplifyCollectionStreamCalls extracted;
2016-12-15 17:13:14 +07:00
Tagir Valeev e73e12bcb1 SimplifyStreamApiCallChainsInspection#handleToArray simplified via getQualifierMethodCall 2016-12-15 15:47:35 +07:00
Tagir Valeev 89e08570b4 IDEA-165395 Replace stream API with loop: l.stream().toArray(String[]::new) 2016-12-15 15:39:48 +07:00
Tagir Valeev c770886a92 PsiUtil#isIncrementDecrementOperation: loosen argument contract to nullable;
RefactoringUtil#isPlusPlusOrMinusMinus is replaced everywhere with PsiUtil#isIncrementDecrementOperation (IDEA-CR-16815)
2016-12-15 14:25:39 +07:00
Tagir Valeev 3741495801 LambdaGenerationUtil: disable if expression is accessed for writing
Fixes IDEA-165482 Optional.isPresent suggests to replace the code which assigns the variable defined outside
2016-12-15 11:51:58 +07:00
Tagir Valeev d8329c5638 Reduced copy-paste logic to check PsiElement being increment/decrement or used in write 2016-12-15 11:14:07 +07:00
Tagir Valeev f04e5ecef5 IDEA-165397 Replace stream API with loop: support lambdas as toArray argument 2016-12-15 09:52:13 +07:00
Dmitry Batkovich 40e7a22106 CompilerReferencesFindUsagesTest add enable/disable of the service 2016-12-14 22:31:03 +03:00
Dmitry Batkovich 23e75561bc javac indices: enable by default & disable in tests, again 2016-12-14 22:27:15 +03:00
Eugene Zhuravlev 846cc82c3f do not fail compilation because of problems in custom extensions;
exceptions from custom extensions are now logged
2016-12-14 19:28:40 +01:00
Vitaliy.Bibaev d9d6420f12 Move Memory view repository to IDEA repo 2016-12-14 21:20:22 +03:00
Dmitry Batkovich c3a779de1b CollectionAddAllCanBeReplacedWithConstructorInspection: replace log assertions with conditional if statements (EA-92609) 2016-12-14 21:15:43 +03:00
Dmitry Batkovich d5068314b4 NPE: AddVariableInitializerFix.runAssignmentTemplate EA-92483 2016-12-14 21:15:43 +03:00
Anna.Kozlova 9544b4c809 highlight inaccessible array component type (IDEA-165434) 2016-12-14 18:40:27 +01:00
Anna.Kozlova 08f38405ad support navigation in stacktraces where class fqns are prefixed with module name (IDEA-165456) 2016-12-14 18:40:27 +01:00
Vitaliy.Bibaev 1dfcf10e4a Collect to move to the IDEA repo 2016-12-14 19:38:47 +03:00
Tagir Valeev 81e951bf90 StreamToLoopInspection#ensureCodeBlock refactored to use PsiTreeUtil.mark/releaseMark (IDEA-CR-16755)
RefactoringUtil#expandExpressionLambdaToCodeBlock reverted (now changes there unnecessary)
void single-expression lambda support
2016-12-14 17:57:02 +07:00
Anna.Kozlova 575a0740a9 method refs: ensure raw substitutor is not used for second search case to build return type constraints (IDEA-165239) 2016-12-14 11:31:36 +01:00
Anna.Kozlova cb0636749a @NotNull 2016-12-14 11:31:36 +01:00