Commit Graph
8671 Commits
Author SHA1 Message Date
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
Roman Shevchenko bb38534f05 [java] fixes module dependency graph analysis 2016-11-18 20:48:27 +01:00
Anna.Kozlova ec82847b4e resolve for method reference qualifier should prefer classes in case of constructor refs (IDEA-164165) 2016-11-18 17:58:54 +01:00
Dmitry Avdeev ead57dbe12 IDEA-164074 Exception using "Select Target" popup menu: test 2016-11-18 15:29:21 +03:00
Dmitry Batkovich f5e1fb4de0 java functional expressions: fix for rendering in case of {ellipsis, primitive, array} type 2016-11-18 15:11:48 +03:00
Roman Shevchenko 2a3d27b18c [java] uses "JDK_HOME/release" file to watch for JDK updates 2016-11-17 17:44:38 +01:00
Anna.Kozlova ccb61093af overload resolution: don't choose most specific method based on boxing property for vararg position (IDEA-163597) 2016-11-17 17:10:53 +01:00
Vladimir Krivosheev 6337bc13de IDEA-CR-15780 do not write default context values 2016-11-17 14:35:38 +01:00
Alexey Kudravtsev 274f1a5b88 check that package name is correct 2016-11-17 15:42:09 +03:00
Alexey Kudravtsev b62a4f2dec optimisation: in case of thousands of events do not call expensive Future.schedule() or message bus.pump() too often 2016-11-17 15:42:09 +03:00
Alexey Kudravtsev fab45b687e cleanup 2016-11-17 15:42:09 +03:00
Alexey Kudravtsev 39bc12c8fc diagnostics 2016-11-16 13:19:58 +03:00
Roman Shevchenko 4065a63673 [java] disables completion in module names (IDEA-164010) 2016-11-15 18:14:52 +01:00
Anna.Kozlova 12542833ff change signature: refresh type element after normalizeDeclaration for old style arrays 2016-11-15 18:11:31 +01:00
Anna.Kozlova 971c0fe60a fix unwrap lambda for nested expression lambdas (IDEA-163987) 2016-11-15 18:11:31 +01:00