Commit Graph
9715 Commits
Author SHA1 Message Date
Anna Kozlova 011b8e4e10 checked exception constraints: ensure ground type (IDEA-173200) 2017-05-22 11:25:29 +03:00
Anna Kozlova 237f4e0f7e show javadoc for getters/setters copied from field (IDEA-60161) 2017-05-22 10:04:57 +03:00
Alexander Zolotov 81fae239f6 Do not add SyntheticLibrary roots to classesOfLibraries
+ add more tests
2017-05-19 19:31:55 +03:00
Alexander Zolotov 8ed8a21668 Introduce exclusion roots for SyntheticLibraries 2017-05-19 18:26:37 +03:00
peter 12748d7404 make performance tests cpuBound by default 2017-05-19 09:23:26 +02:00
peter adeb64da36 IDEA-173050 Incorrect null analysis of <T extends @NonNull Object> 2017-05-18 20:57:58 +02:00
peter 1c348b9283 java reparse tests -> community, enlighten 2017-05-18 20:57:57 +02:00
Anna Kozlova cc246d9403 follow IDEA-CR-21157 2017-05-18 16:38:55 +03:00
Anna Kozlova e747d52bf5 create method from usage: treat polyadic expressions as for completion by containing expression (IDEA-151432) 2017-05-18 13:25:30 +03:00
Anna Kozlova 2740fe6831 include method refs into callees as content of classes was always included (IDEA-173002) 2017-05-18 13:25:30 +03:00
Tagir Valeev f7a43a77ff ObviousNullCheckInspection: improve extraction of side-effect statements when ternary operator or short-circuiting logic is involved. 2017-05-18 16:47:19 +07:00
Anna Kozlova 987caaf26d provide this(); fix when constructor requires super call (IDEA-151335) 2017-05-18 10:50:55 +03:00
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