Commit Graph
9703 Commits
Author SHA1 Message Date
Anna Kozlova 40cbf4648a fix testdata 2017-05-18 10:50:55 +03:00
Tagir Valeev 9f7b27a7cc BytecodeAnalysisIntegrationTest: expected annotations fixed (somehow these two were missing) 2017-05-18 14:40:57 +07:00
Tagir Valeev f2442e32fa ConvertSwitchToIfTest: test5 rewritten as getClass() is now pure 2017-05-18 14:36:52 +07:00
Tagir Valeev 1fccd8f503 BulkMethodInfo, UseBulkOperationInspectionTest: fixes after review IDEA-CR-21146 2017-05-18 12:27:59 +07:00
Tagir Valeev c41245708f Bytecode analysis: purity inference improvement (also fixes IDEA-172989):
1. Lambda/method reference creation is pure
2. String concatenation is pure
3. Constructor which only modifies own fields (calls setters, etc.) is pure
4. Exception creation is pure
5. A few hardcoded native methods
2017-05-18 10:52:53 +07:00
Tagir Valeev af20bc97d0 DFA: ignore ranges for float/double (was introduced during DfaFactType merge) 2017-05-18 10:52:52 +07:00
Dmitry Batkovich 1426fb2cb6 PreferMostUsed weigher: push down the weigher after proximity 2017-05-17 19:26:00 +03:00
Anna Kozlova 705a56a72f create method from usage optimization: limit number of created parameters to 255 as otherwise it won't compile; for 20+ parameters stop shorting refs and reformat (IDEA-149623) 2017-05-17 12:50:18 +03:00
Tagir Valeev 8323d2f78d BulkMethodInfo: support for Java 1.4 (fixes EA-101278). 2017-05-17 11:54:09 +07:00
Anna Kozlova 94dd554c0c don't use void in non-free method calls (IDEA-172958) 2017-05-16 21:33:01 +03:00
Dmitry Batkovich eaeffca0b8 method chain completion: simplify old code 2017-05-16 21:20:53 +03:00
Dmitry Batkovich 2576d32217 method chain completion: rewrite old code 2017-05-16 20:32:15 +03:00
Roman Shevchenko b884b6363a [tests] a test for various modes of wrapping long Java command lines 2017-05-16 18:21:15 +02:00
peter cd6730e154 Analyze Stacktrace shouldn't treat idea.log as a YourKit thread dump 2017-05-16 16:19:21 +02:00
Alexander Zolotov f1d4a03836 Remove senseless but brittle test
The test checks that postfix template is NOT expanded by enter if an abbreviation was typed fast and completion lookup was not appeared before pressing Enter.

However, there is nothing wrong in expanding template if lookup was fast enough to appear before pressing Enter.

The second test should be kept, as it checks that Postfix template is expanded no matter is there lookup with template in it or not.
2017-05-16 14:57:49 +03:00
Anna Kozlova 5459a3b0e0 update testdata (IDEA-CR-21114) 2017-05-16 11:39:50 +03:00
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