Commit Graph

9837 Commits

Author SHA1 Message Date
Vladimir Krivosheev
4ddc817883 remove ModifiableModel, migrate to use setToolEnabled 2017-05-16 10:25:13 +02:00
Anna Kozlova
350f588c09 unused declaration: take refs from literals into account (IDEA-172447) 2017-05-16 09:08:10 +03:00
Anna Kozlova
d634c51afe javadoc: include all throws unchecked exceptions from all super methods (IDEA-152938) 2017-05-15 18:59:37 +03:00
peter
582f0f9571 IDEA-CR-20904 fixes after review (IDEA-123301 Show a warning if 'List<@Nullable X>' is passed to a place where 'List<@NotNull X'> is expected)
supported maps, inheritance, returns, functional expressions
2017-05-15 16:16:19 +02:00
Vladimir Krivosheev
8753c5d96a simplify — introduce forceCloseProject (test only)
Since Kotlin is not used, have to introduce such method to avoid (false, true, false, true, guessWhatIDo)
2017-05-15 16:09:08 +02:00
Dmitry Batkovich
18592664b7 method chain completion: remove sub lookup element (automatic argument insertion) 2017-05-15 16:27:16 +03:00
Dmitry Batkovich
d4277c4ab3 cleanup: rename 2017-05-15 15:53:05 +03:00
Yaroslav Lepenkin
c8b6a6500b [IDEA-167425] formatter: fixed misplaced rbrace position 2017-05-15 14:39:41 +03:00
peter
f6885971b9 NullableStuffInspectionTest: use jdk 8 2017-05-15 13:32:46 +02:00
Alexey Kudravtsev
4b0a2282b2 remove redundant overrides of default methods 2017-05-15 13:51:44 +03:00
Tagir Valeev
887708387d Objects.requireNonNull is not pure as it executes the passed lambda 2017-05-15 17:02:44 +07:00
Pavel Dolgov
c7d8ad3401 Java: Don't reuse cached ControlFlow when the context is not equivalent (IDEA-168768) 2017-05-15 12:34:52 +03:00
Tagir Valeev
67e97bc713 ObviousNullCheckInspection: ignore null literals 2017-05-15 15:11:38 +07:00
peter
29672cb324 java smart completion: prefer all items with exactly expected type, not only classes (IDEA-169490) 2017-05-15 09:16:00 +02:00
peter
75f8c42d7f let FunctionalExpressionCompletionProvider and MethodReferenceCompletionProvider work in different contexts to avoid duplicate variants 2017-05-15 09:07:29 +02:00
Tagir Valeev
1305a60e44 IDEA-172798 "Immutable collection creation can be replaced" to remove temporary variable used for assignment 2017-05-15 13:21:05 +07:00
Tagir Valeev
b3339b7cfd IDEA-165108 Objects.requireNonNull with argument of primitive type should be reported as warning 2017-05-15 13:08:30 +07:00
Maxim.Mossienko
094d0b26fe Stray swap file in intellij-community (IDEA-172846) 2017-05-14 08:10:10 +02:00
Maxim.Mossienko
fa12df795c (instead of numerous stub index locks) use stub_updating_index's lock for processing stubs, flushing, clearing, disposing
as side effect accessing stub indices during processing other stub indices is allowed
2017-05-14 01:36:12 +02:00
Alexey Kudravtsev
eadce11afd Default File Header made empty to avoid moronic comments like /* created by USER on DATE */. See IDEA-147100 Default File Header template causes pointless javadocs in projects 2017-05-13 11:52:11 +03:00
peter
1c977bd5dd IDEA-170406 Prefer expected enum constants in annotation attribute, despite statistics 2017-05-13 07:53:22 +02:00
peter
fb4599a4f0 IDEA-167746 Carry completion list over to the next line on Shift+Enter 2017-05-12 22:54:22 +02:00
Dmitry Batkovich
4b84c00545 inspection settings: move importInspectionProfile method 2017-05-12 20:03:20 +03:00
Vladimir Krivosheev
1b4d3baf29 IDEA-169025 Preserve run configurations order 2017-05-12 15:55:57 +02:00
peter
514f227143 don't unwrap do-while statement with break/continue inside (IDEA-CR-20896) 2017-05-12 14:21:57 +02:00
Alexey Kudravtsev
4a4626c750 removed default file header, because it adds no information but subtracts attention and space 2017-05-12 14:02:24 +03:00
Tagir Valeev
ed2d5b33fe SuspiciousArrayMethodCallInspection: erased types are compared (fixes IDEA-172742). As the corresponding argument accepts Object or Object[], exact generic signature cannot be always inferred. 2017-05-12 11:11:05 +07:00
Vladislav Rassokhin
c89f9523f7 Improve single line comments folding in Java and Groovy so start/end of custom folding region won't break such folding 2017-05-11 20:50:11 +03:00
peter
88bdc032be look for conflicts when replacing 'for' with its initialization (IDEA-CR-20896) 2017-05-11 17:43:42 +02:00
Yaroslav Lepenkin
5a0fa7564e [parameter hints] provide hints for multi-resolved method for the same named arguments with flag "showOnlyIfExistedBefore". On deleting an argument from method call expression, hints will not flake even if we can't determine exact method. Also in such a case hints will not appear in some unclear situations, since using flag "showOnlyIfExistedBefore" 2017-05-11 18:10:17 +03:00
Pavel Dolgov
d6cd98dc83 Java: Merge all MethodHandle/VarHandle checks into a single inspection (IDEA-172358, IDEA-171813, IDEA-167318) 2017-05-11 15:16:31 +03:00
Pavel Dolgov
9e6ebdaa44 Java: Inspection to verify parameters of VarHandle.get(), VarHandle.set(), and similar methods (IDEA-172358) 2017-05-11 15:16:31 +03:00
Alexey Kudravtsev
920d5b4fba removed default file header, because it adds no information but subtracts attention and space 2017-05-11 13:39:07 +03:00
Tagir Valeev
9282a67e6b RedundantArrayForVarargsCallInspection: do not warn if nested array initializers are used (fixes IDEA-165068) 2017-05-11 13:22:56 +07:00
Tagir Valeev
72078f0b1d RedundantArrayForVarargsCallInspectionTest: make it LightInspectionTestCase 2017-05-11 13:22:55 +07:00
Anna Kozlova
d31ca80cac testdata for IDEA-158047 2017-05-10 20:35:34 +03:00
Anna Kozlova
728ed62ed0 testdata for IDEA-157350 2017-05-10 20:35:34 +03:00
Roman Shevchenko
c82a647af1 [java] improves JDK version detection (IDEA-172477) 2017-05-10 18:29:53 +02:00
peter
932d1215d6 make 'remove loop' fix work for '(false)' and 'for' (IDEA-CR-20896) 2017-05-10 17:11:34 +02:00
Yaroslav Lepenkin
05d70cee37 space between annotation and type is normalized (IDEA-172599) 2017-05-10 13:48:26 +03:00
peter
a9db058d17 java completion: suggest guava/protobuf builder variants (IDEA-130386) 2017-05-10 10:13:55 +02:00
Vladimir Krivosheev
55d1ea20db fix crazy groovy code (testEveryPossibleWayToTypeIf) 2017-05-10 08:17:46 +02:00
Anna Kozlova
d3b899c7a9 static factory detection for top level method call (IDEA-172566) 2017-05-10 09:14:16 +03:00
Tagir Valeev
e46d305cb0 DfaPsiUtil#getFunctionalParameterNullability: use known type nullability for SAM parameters 2017-05-10 11:02:51 +07:00
Vladimir Krivosheev
0646656b8b deprecate DocumentAdapter 2017-05-09 18:31:16 +02:00
peter
2461a8751c IDEA-163986 Code complete second default array argument in annotation 2017-05-09 14:37:54 +02:00
peter
dbb67a4f59 IDEA-127845 Select logical line rather than visual line if an action which requres selection is invoked 2017-05-09 10:39:41 +02:00
peter
8920a8effe introduce PsiManager#dropPsiCaches which clear resolve cache, increments PSI mod counts, leads to highlighting restart and whatnot 2017-05-09 10:39:41 +02:00
Anna Kozlova
ee0e90d92c provide applicability substitutor when inference fails for parent expression 2017-05-08 22:58:02 +03:00
peter
fe0ead80c0 let's enable completion autopopup when typing digits and see if anyone complains (IDEA-123325) 2017-05-08 18:54:54 +02:00