Commit Graph

14177 Commits

Author SHA1 Message Date
Tagir Valeev
1c84c9bef2 IDEA-219189 "Split into 2 if's" generates redundant 'else if' clause
GitOrigin-RevId: 0218fd86bb09eea638be20dd96bd248ce498a399
2019-08-05 04:02:41 +03:00
Tagir Valeev
94b63d6ff0 IDEA-219109 Stream.of(...).anyMatch(Objects::isNull) does not affect nullability analysis
GitOrigin-RevId: ce9769eb34c87cf6bc07b0c526f799b9b4f9a324
2019-08-05 03:03:37 +03:00
Tagir Valeev
ae33c73266 ReturnReplacementContext#extractTail: leave blank line in place (IDEA-219142)
GitOrigin-RevId: 30a93c99fc47f4d277b45cabe9c72b4a41b05846
2019-08-05 00:03:02 +03:00
Tagir Valeev
ea11a4b5d3 Nullable on empty only: Deque#pollFirst, pollLast, peekFirst, peekLast
Fixes IDEA-219807 'Method invocation may produce NullPointerException' false positive for ArrayDeque.pollFirst

GitOrigin-RevId: 6bb29ed1c75f1c626a6132c2683e704dd111819e
2019-08-05 00:03:02 +03:00
Leonid Shalupov
f8b1322892 Rewrite ModuleRootsExternalizationTest without using project module implementation details
GitOrigin-RevId: 8b0a45d894d38202cff896be3a5f6cef30d9a704
2019-08-04 19:02:22 +03:00
Leonid Shalupov
809698d189 Rewrite RepositoryLibrarySerializationTest without using project module implementation details
GitOrigin-RevId: 044988ebc5af434a1e7404fee00b68c5ec6952f7
2019-08-04 19:02:22 +03:00
Tagir Valeev
2876989890 Completion in commit window improved (IDEA-CR-50723)
1. Return lookup elements in pure function way
2. TopLevelCompletionContributor renamed to SymbolNameCompletionContributor
3. Added support for Groovy

GitOrigin-RevId: 9428d52da9e22aaeb507afa1d86b6704116311c0
2019-08-03 09:03:47 +03:00
Bas Leijdekkers
08e0c75307 text blocks: avoid changing contract of externally used method (IDEA-CR-50967)
GitOrigin-RevId: 1d325fd703565bd699ac7dfc4c9711852987f644
2019-08-02 23:02:34 +03:00
Leonid Shalupov
c93b88ef4d use less implementation details in project model tests
GitOrigin-RevId: 9218d12963e13df228ee6205af1611a3ce0ff452
2019-08-02 23:02:34 +03:00
Leonid Shalupov
fa271cdec4 use less implementation details in project model tests
GitOrigin-RevId: a7e1f37c69af55748fe5626d4823117ecbe6448e
2019-08-02 23:02:34 +03:00
Leonid Shalupov
4917c3eac8 OrderEnumeratorTest: register used SDKs
GitOrigin-RevId: 43cf6ce161e614059b378c8fea4a3a0d85b1cb7d
2019-08-02 21:02:32 +03:00
Leonid Shalupov
33483e480f tree structure tests: use correct API for setting module group path
GitOrigin-RevId: 7327e1ad50d10d810f2748b31bcd6db68f489052
2019-08-02 21:02:32 +03:00
Leonid Shalupov
1b2711ebea PlatformTestCase: register test project JDK
New project model implementation requires all entities to be registered in project model, not just some Java mocks

GitOrigin-RevId: bd878512668757ab2a560cf32c8a55dd1f32a120
2019-08-02 21:02:32 +03:00
Bas Leijdekkers
a12eee9fbc preserve text blocks when converting to (message)format string (IDEA-217253, IDEA-218831)
and use new text block escaping

GitOrigin-RevId: cc8eea8aa0c638b967e40b6a6b4b9dea1cfed61d
2019-08-02 00:04:00 +03:00
Vladimir Krivosheev
4a84f713d2 lazy message bus listeners on project level — part 2
GitOrigin-RevId: 67c8099192afbb8abec4b031439391a634712f46
2019-08-01 20:05:37 +03:00
Bas Leijdekkers
507c853824 text blocks: add text block escaping (only escape """ and \) when pasting (IDEA-217353)
GitOrigin-RevId: 03db759d2b770edc191aa0614251bdbaaa1742ed
2019-08-01 01:02:50 +03:00
Bas Leijdekkers
1094935f12 lex "\""" in text block correctly (IDEA-219597)
GitOrigin-RevId: f47e4997cf0938b6180b78305bb99bd1c451e02a
2019-08-01 01:02:50 +03:00
Bas Leijdekkers
dca820c744 text blocks: don't escape paste outside content of text block (IDEA-217353)
GitOrigin-RevId: 7ee24196154f11a34b50d2d95c62f374abe13f14
2019-08-01 01:02:50 +03:00
Alexey Kudravtsev
1673548c7f more explicit dependencies to fix some ill written tests
GitOrigin-RevId: d1d5c1be3f649188d990bf284370aa007d880b7e
2019-07-31 21:04:10 +03:00
Roman Shevchenko
b15a0fb682 [java] drops raw string literal support
GitOrigin-RevId: 153517ad5e0ac8f8165128ed8797d4157b5512b2
2019-07-31 00:04:46 +03:00
Valentin Fondaratov
92001a67bc IDEA-219488: update quickdoc decoration part with newly changed element, not an old one
GitOrigin-RevId: 43d49d141870ab3829bf8f02007aa7fd9617265b
2019-07-30 20:05:38 +03:00
Roman.Ivanov
b40ef7f48d Inlay hints: create base test case to test inlay providers in isolation
GitOrigin-RevId: 30ae3bc661bb254665386f5bed87b5c6a45ee945
2019-07-30 11:46:05 +03:00
Roman.Ivanov
b454d831c7 Inlay hints: dispose inlays without provider which can manage it: IDEA-217903
GitOrigin-RevId: c8f6387b48c46cebe3af695f041419a80591cd49
2019-07-30 05:43:25 +03:00
Tagir Valeev
1d2d9236f6 ControlFlowAnalyzer#generateBoxingUnboxingInstructionFor: add primitive cast after unbox when necessary
Fixes IDEA-219122 False inspection result when comparing boxed values

GitOrigin-RevId: c32cda24d371caacd4356cce8bdcbb40557c4ccc
2019-07-29 17:10:29 +03:00
Yuriy Artamonov
95649ee955 IDEA-218163 IDEA-CR-50494 Tests for CreateFilePathFix and CreateDirectoryPathFix in Java plugin
GitOrigin-RevId: 26ab3c8980868b3da0e7c1e6ff2e36c4146b838d
2019-07-29 16:00:42 +03:00
Sergey Ignatov
805890b91f get rid of our own hash set
GitOrigin-RevId: 070f538f721996f2a4244f58d38e35c382207f5c
2019-07-29 12:20:20 +03:00
Sergey Ignatov
fbb93de1b9 get rid of other our own hash map
GitOrigin-RevId: a34952b12d3fafc19eaaa6cdd151a317b8ff16db
2019-07-29 12:20:20 +03:00
Bas Leijdekkers
d34083c8f4 text blocks: fix broken escape highlighting (IDEA-219098)
GitOrigin-RevId: 299585eb47bbd5f5b14473aadd0290fc64ef0845
2019-07-29 12:20:20 +03:00
peter
6c888ae3e2 make GotoActionTest.test no lowercase camel-hump action description match work in restart-capable env
GitOrigin-RevId: 9c013f98e18533364ac369fc819a2c6a038ffaee
2019-07-26 15:02:42 +03:00
Tagir Valeev
7c500360a8 IDEA-73223 More completions in commit message editor. Not only for file names, but method/field names, etc.
GitOrigin-RevId: f7f949a665bcedf0a14e12b3eebd432b5d714578
2019-07-26 14:03:13 +03:00
Artemiy Sartakov
562b4afd1a CommentFoldingUtil: do not add ellipsis if header includes all javadoc content (IDEA-216380)
GitOrigin-RevId: 677371c852f49a64d0f2ca008280152c953494bb
2019-07-26 12:05:43 +03:00
Artemiy Sartakov
fdde0d69f0 ExplicitArrayFillingInspection: removed unnecessary imports from test (IDEA-CR-50510)
GitOrigin-RevId: 3189600dc9f48a3d2d567ec829c575f7455c9f50
2019-07-26 11:02:46 +03:00
Vitaliy.Bibaev
2cd49bb33b Update testdata after enabling extraction of generated class in compiling evaluator
GitOrigin-RevId: 1c56d0cd598b659a4269003a6f0604f2c1b8f4e5
2019-07-26 11:02:46 +03:00
Artemiy Sartakov
e728e7eda8 ExplicitArrayFillingInspection: suggest Arrays.fill in cases when filled value is immutable (IDEA-CR-50510)
GitOrigin-RevId: a9d5627d25572edeb2f920aff62d108dd6f183ac
2019-07-26 11:02:46 +03:00
Bas Leijdekkers
857ae8e685 text blocks: process escapes (IDEA-219096)
GitOrigin-RevId: 4a90cd96689a51536b45b36c7e13b4fc8fb273d5
2019-07-26 02:57:50 +03:00
Roman Shevchenko
36de206978 [tests] unambiguous relative paths for copying files into a test project
GitOrigin-RevId: 8b27bbb827ce92900e6ee8f3ed202a17e2682935
2019-07-26 02:57:50 +03:00
Tagir Valeev
a33323ba13 IDEA-218089 Find cause may duplicate reason for && operator
GitOrigin-RevId: 4f742038e13a70f086e5065acff060ed72340822
2019-07-25 13:03:37 +03:00
Konstantin Bulenkov
bc73a434e1 Remove unused imports and import duplicates from java files
GitOrigin-RevId: e5d5f6df09f21ae2e894451bf0c5255f82836755
2019-07-24 21:02:56 +03:00
peter
018a02d757 IDEA-212024 Replace adjacent literal with selected completion option when pressing Tab
GitOrigin-RevId: bc5edd0fb01781ff6b6afab151550bdbf152c6c6
2019-07-24 20:04:56 +03:00
peter
b77689e393 don't let equivalent types spoil idempotence checks (EA-208997 - assert: IdempotenceChecker.checkEquivalence)
GitOrigin-RevId: 4a6ac1d05a55d3935b81639ff516a31050fe4e96
2019-07-24 18:06:01 +03:00
Dmitry Batkovich
3df6ae8eac delete old forward index
GitOrigin-RevId: 594c0225351a80f2d50bb3859ed56a9464eb02d3
2019-07-24 14:03:16 +03:00
Tagir Valeev
2b0a160b8a VariableExtractor: do not rewrite while-loop condition if occurrences appear outside of the loop (IDEA-218704)
GitOrigin-RevId: 213471de9a6d623336673a3b968ec4724215012a
2019-07-24 13:32:51 +03:00
Tagir Valeev
b075e069be EnsureCodeBlockImpl#extractWhileCondition: fix when while has no braces (part of IDEA-218704)
GitOrigin-RevId: 329d56d0ecdc71d3714327de38ace63c24811e10
2019-07-24 11:59:20 +03:00
Tagir Valeev
ed7f52f85b IDEA-218805 NullPointerException when find cause quick fix applied
GitOrigin-RevId: fcac9cd13e2f714bb6bfb0699e825bc5a190d68a
2019-07-24 11:30:28 +03:00
Tagir Valeev
f9be4584e5 applyGetClassRelation: minor simplification; test for new object (IDEA-CR-50564)
GitOrigin-RevId: 439a327d7276a0d28e3ebc41f01646a828305022
2019-07-24 06:52:25 +03:00
Tagir Valeev
e77596602d Track getClass() calls (IDEA-195220)
GitOrigin-RevId: 2927b603e5192a14c421e33d5cf1a9c3235015df
2019-07-24 05:51:18 +03:00
Sergey Ignatov
9d823ad5dd there's no need to use <? extends String>, because String is final
sometimes it's necessary, e.g. when we're substituting any generic with the real type

GitOrigin-RevId: a8c453813b04213f7e24dd80bc7ccec4eb78efcb
2019-07-24 04:32:35 +03:00
Dmitry Jemerov
dce9f881cd PlatformTestCase -> HeavyPlatformTestCase (IDEA-CR-48521)
GitOrigin-RevId: f511803c08614f88443952c32176185ca7ed7bb4
2019-07-23 20:49:32 +03:00
Dmitry Jemerov
d27af7f3f8 TypedAction converted to independent service
GitOrigin-RevId: 802980d1bf93317415d69d6338f3d7e0b9fcd2e3
2019-07-23 17:44:15 +03:00
Artemiy Sartakov
6f4c0d38cf SortContentAction: append all children between method expression and expression list for method call (IDEA-218735)
GitOrigin-RevId: 0cc643fdbdac51be763d51bf53b28d48f371e460
2019-07-23 17:44:15 +03:00