Commit Graph
8685 Commits
Author SHA1 Message Date
Anna.Kozlova 261e309dd7 import static: insert single-static-import if multiple on-demand imports with corresponding constants are available leading to ambiguity reference 2016-11-25 09:56:52 +01:00
Anna.Kozlova 83bb640734 ensure inserted single-static-import when conflicting on-demand imports are presented (IDEA-155031) 2016-11-25 09:56:52 +01:00
Anna.Kozlova 3e13378341 optimize imports: don't collapse into on-demand when result in ambiguity 2016-11-25 09:56:52 +01:00
Vassiliy.Kudryashov d473435ef3 IDEA-162580 Tool Windows show/hide state is not memorized 2016-11-24 17:07:18 +03:00
Pavel Dolgov a624c87488 Java: Don't use PSI elements in the global inspection "Redundant 'requires' statement in module-info", tests added (IDEA-163139) 2016-11-24 15:14:47 +03:00
Yaroslav Lepenkin 8c5e438505 [Parameter Hints] minor, flaky test debugging on TC 2016-11-24 15:07:17 +03:00
Yaroslav Lepenkin f846c43145 [Parameter Hints] builder methods only ones with single param 2016-11-24 14:25:18 +03:00
Tagir Valeev c2e815fc97 IDEA-163405 Migration from Stream API back to for loops: iteration#2 2016-11-24 18:15:51 +07:00
peter 16469a3b99 fix flaky ImportHelperTest: ensure auto-import is executed 2016-11-24 12:06:18 +01:00
Roman Shevchenko 1a8949c041 Cleanup (formatting) 2016-11-23 19:58:28 +01:00
Roman Shevchenko b830fac6f5 [java] module-info template, done right (IDEA-164010) 2016-11-23 19:56:08 +01:00
Roman Shevchenko 464c1b85af Merge remote-tracking branch 'origin/master' 2016-11-23 15:08:24 +01:00
Anna.Kozlova e201eee547 warn if lambda -> method ref fix can change semantics (IDEA-CR-16052) 2016-11-23 14:31:13 +01:00
Roman Shevchenko e13571a439 [java] module-info template according to platform's expectations 2016-11-23 14:16:45 +01:00
Anna.Kozlova 049a253fdf inference: don't erase types when target type is parameterized with unbounded wildcards only, in this case no unchecked warning would be generated and the types won't be affected by unchecked warning clause 2016-11-23 11:53:29 +01:00
Maxim.Mossienko 21e14a61b4 api for InvertedIndex in util 2016-11-23 11:36:10 +01:00
Bas Leijdekkers ad8c623aca add parentheses to quick fix presentation 2016-11-23 11:31:36 +01:00
Tagir Valeev 0f7c78a5a6 IDEA-163991 ifPresent is not suggested when value is not used inside expression; OptionalIsPresentInspection uses CommentTracker now 2016-11-23 17:26:57 +07:00
peter f1092d42fb IDEA-164257 Declarations visible from a Java file shouldn't include current package's subpackages 2016-11-23 11:12:09 +01:00
Tagir Valeev 7e89cd1ef2 IDEA-164277 "Simplifiable conditional usage of Map.get()" may suggest putIfAbsent() in following case 2016-11-23 13:14:50 +07:00
Tagir Valeev 0053cc6c7e IDEA-164271 "Simplifiable conditional usage of Map.get()" doesn't recognize proper pattern with adding additional parentheses 2016-11-23 12:30:56 +07:00
Tagir Valeev e60be117ba CommentTracker#markUsed -> markUnchanged; ReplaceInefficientStreamCountInspection: move comments from .stream() call parameters list outside of resulting .size() parameters list (IDEA-CR-16097). 2016-11-23 11:46:22 +07:00
Anna.Kozlova fb04c2169b extract lambda -> method reference to code style settings 2016-11-22 20:22:29 +01:00
Anna.Kozlova 85fdebf831 spi binding: be ready for short names in handleRename (IDEA-164272) 2016-11-22 20:22:29 +01:00
Anna.Kozlova 2514f10f0e lambda -> method ref: allow conversion with any qualifier, show warning only for trivial qualifiers; same for anonymous -> method ref (IDEA-CR-16052) 2016-11-22 20:22:29 +01:00
Roman Shevchenko 334930dabd [java] module-info template action test (IDEA-CR-16111) 2016-11-22 15:18:26 +01:00
Alexey Kudravtsev 41b438000b apply all highlighters via one queue to avoid races 'create new error incrementally/ remove error in setHighlightsToEditorInRange()' in incorrectly written annotators (which ignore error highlighter locality by doing visit file recursively etc) (IDEA-163273 PhpStorm: error highlighting appears and then disappear immediately) 2016-11-22 15:34:37 +03:00
Pavel Dolgov ecee694ed9 Java: Added test for the global inspection "Unused 'requires' statement in module-info" (IDEA-163139) 2016-11-22 14:10:31 +03:00
Tagir Valeev 492d6ad737 ReplaceInefficientStreamCountInspection: remove generic parameter list if any 2016-11-22 12:31:24 +07:00
Tagir Valeev ec864dc55a IDEA-163874 "Replace inefficient Stream API call chains ending with count" removes comments
IDEA-163875 Inspection "Replace inefficient Stream API call chains ending with count()" should respect alignment settings
2016-11-22 12:14:21 +07:00
Anna.Kozlova becb6c7387 inference: mark call unchecked required when proper types are compared (IDEA-164243) 2016-11-21 19:33:20 +01:00
peter 88e40b68b1 goto file: match against the path from top-level content root (IDEA-162244) 2016-11-21 18:11:28 +01:00
peter 221f557fde IDEA-162418 Enhanced go to file formats 2016-11-21 18:11:28 +01:00
peter 7a8bd02590 IDEA-163834 Smart completion for stream.toArray(..) arg loses "[]" after accepting - when array is of non-static inner class 2016-11-21 18:11:28 +01:00
Bas Leijdekkers eae8f18550 Report default annotation parameters in more cases 2016-11-21 17:09:17 +01:00
Bas Leijdekkers cbab61f15b fix annotation matching in duplicates finder 2016-11-21 17:09:15 +01:00
peter 60e0db2a5c IDEA-163989 IDEA reports Object.getClass() with wrong return type for generic parameters 2016-11-21 16:41:08 +01:00
peter 103feba4ca IDEA-164159 Nullability annotations don't work with generics 2016-11-21 16:41:08 +01:00
peter 53a517d779 completion preselection: choose the most relevant among exact prefix items (IDEA-163441) 2016-11-21 16:41:08 +01:00
Anna.Kozlova 25d5c187d7 goto implementation: when no implementations are possible (e.g. static method), include self into presentation 2016-11-21 16:28:18 +01:00
Anna.Kozlova 8bc0d93c07 split test data, use utility 2016-11-21 16:28:18 +01:00
Anna.Kozlova 7d1f9d1e7b lambda -> method ref: allow pure method call chain (IDEA-164223) 2016-11-21 16:28:18 +01:00
Pavel Dolgov c323980d20 Java: Handle classes in the inspection "Non-accessible type is exposed", added tests for initializer blocks (IDEA-162768) 2016-11-21 14:32:45 +03:00
Pavel Dolgov 4a43f69f68 Java: Don't handle annotations in the inspection "Non-accessible type is exposed" (IDEA-162768) 2016-11-21 14:32:45 +03:00
Pavel Dolgov 64afe806a9 Java: Handle fields and methods in the inspection "Non-accessible type is exposed", added arrays test (IDEA-162768) 2016-11-21 14:32:45 +03:00
Anna.Kozlova 7ffa9bd6ca override/implement annotation settings (IDEA-58379)
annotations are removed by default for both return and parameters, custom OverrideImplementHandlers can provide predefined annotations which must be repeat in overriders, custom annotations can be configured by the user
2016-11-21 11:02:15 +01:00
Tagir Valeev bb0a1b6817 IDEA-163980 Inspection "Collections.sort() can be replaced with List.sort()" may leave unnecessary parentheses 2016-11-21 14:59:02 +07:00
Tagir Valeev 3fa339e3dd IDEA-164016 Replace Optional.isPresent() checks with functional-style expressions fix produces non-compilable code 2016-11-21 14:47:02 +07:00
Tagir Valeev f60c60c661 IDEA-164144 Intention offers change to comparingInt for long fields 2016-11-21 13:08:30 +07:00
Roman Shevchenko 27e9529272 Merge remote-tracking branch 'origin/master' 2016-11-18 21:04:20 +01:00