Commit Graph
299113 Commits
Author SHA1 Message Date
Tagir Valeev 48beacdfa3 [java-refactoring] Introduce variable: extract loop invariants (at least simple ones) outside of while loop
Fixes some of annoying cases like reported in IDEA-210010

GitOrigin-RevId: b083327807d85666d1f71f96a90d0eddd616754f
2020-12-21 10:44:43 +00:00
Tagir Valeev e6102de0d2 [java-refactoring] Introduce variable: do not try to add cast if the type is non-variable type
Found by property testing
Fixes EA-248598 - [ExtractVar] AE: JavaParserUtil.parseFragment

GitOrigin-RevId: 91d32dd33ef6c75ed750419b06654acffba6d684
2020-12-21 10:44:42 +00:00
Tagir Valeev 9276b73b49 [java-refactoring] CodeBlockSurrounder: do not fail when parentheses are removed by nested surrounder
Found by property tests

GitOrigin-RevId: 244eea39dbb352bb1486a99d2aab9c5e636693b1
2020-12-21 10:44:41 +00:00
Tagir Valeev b03f6c2569 [java-tests] Rename IntroduceVariable -> IntroduceVariableActionOnFile
GitOrigin-RevId: 033c80bcbcf38abeeee386d14393cbd9ce6cf095
2020-12-21 10:44:40 +00:00
Dmitry Gridin c958333ccd [tests] MavenImportingTestCase: make doAssertContentFolders protected
GitOrigin-RevId: 783ca4b62ef57d2454845a99b3c5bff1459069b3
2020-12-21 10:43:06 +00:00
Nikita Nazarov 339517e2f5 Add capability to attach agent to gradle projects
(cherry picked from commit 75307cc7a104ffa345473bc742ec72b806ff74ba)

IJ-MR-4767

GitOrigin-RevId: 28f128ec895fd0ad128b3d4c13f54ad2bf1e619d
2020-12-21 10:40:46 +00:00
Kirill Kirichenko a8aca0359f IDEA-258213 Nightly build doesn't show buttons
GitOrigin-RevId: be64230715f22e4bdeacc44536fb7d8976dcc776
2020-12-21 10:17:56 +00:00
Roman Shevchenko 11531c1fd3 Cleanup (warnings; formatting)
GitOrigin-RevId: 7a6d2b0ef8b5bd41e95b7c5b3a8345c959c96e18
2020-12-21 08:52:02 +00:00
Roman Shevchenko 435b587612 [tests] WSL lookup once per test class
GitOrigin-RevId: b411fd9d42b123b1174de26ef14603d2dfb1a471
2020-12-21 08:51:08 +00:00
Roman Shevchenko 3f2d1528dc [wsl] timeout for WSL probing commands
GitOrigin-RevId: 8a27aef217dc40e2791b9321ad81bc3d0f64ef38
2020-12-21 08:26:40 +00:00
Roman Shevchenko 97f2b953ea Cleanup (logging; formatting)
GitOrigin-RevId: f9ce235b02f6c2289d8811d028e1339e69b372e7
2020-12-21 08:24:31 +00:00
Dmitry Batkovich 448f4a3242 index: iterate over single ModuleIndexableFilesIteratorImpl only once
GitOrigin-RevId: b4587badae836fbb57848aa544398bb954c56dcf
2020-12-21 07:49:14 +00:00
Dmitry Batkovich d7c6a4290b index: improve log messages
GitOrigin-RevId: dddf594742a9b49e043a1d4d57e44347336012e5
2020-12-21 07:49:13 +00:00
Alexey Kudravtsev 329ecc2392 remove deprecated members
GitOrigin-RevId: eadaa9e0ae37c9a37ad1a4bbff5bab5e61228169
2020-12-20 23:27:42 +00:00
Alexey Kudravtsev 19b12745bd remove deprecated members, more deprecation warnings
GitOrigin-RevId: fcdfbb8e2daa5369cbe39613bc92f725a4f8559d
2020-12-20 16:35:31 +00:00
Alexey Kudravtsev 7177b50706 revert "ignore JITc times during performance tests" because they sometimes reported extremely huge in multi-thread tests causing them to always pass
GitOrigin-RevId: 65df514ff3c72e729de586ef1fafc3ff40f3ad81
2020-12-20 16:35:29 +00:00
Alexey Kudravtsev e288414440 fix flaky test: do not adjust execution time by cores number once more because the test threads were already created according to FJP parallelism
GitOrigin-RevId: e1593771dd7ed5715bed7697e59441517b0b166d
2020-12-20 16:35:28 +00:00
Alexey Kudravtsev 1cc7204197 RWLock performance: make unnecessarily volatile fields final
GitOrigin-RevId: 23781a6883d170d350627a3b340046a012494c28
2020-12-20 16:35:27 +00:00
Alexey Kudravtsev 95d2d94a47 RWLock speedup: do not call Thread.isAlive() too often because it's expensive
GitOrigin-RevId: 925944207fef422e4d09fba119fbdf7b2dfe2d81
2020-12-20 16:35:26 +00:00
Kirill Likhodedov 1511b6b196 [java-ui] Fix message format in the Project from Existing Sources dialog title: IDEA-254246
According to the javadoc of the ChoiceFormat,
> If there is no match, then either the first or last index is used, depending on whether the number (X) is too low or too high.

Although 0 was specified to indicate that there were no providers, there was no match for 0, and "from " was appended to the message.

GitOrigin-RevId: df543fca71cd077bf65080c5f4c461d38d652596
2020-12-19 16:19:01 +00:00
Sergey Simonchik cfbcbe8f0c jest: use coverageDirectory from jest config, do not overwrite coverageReporters configured in jest config (WEB-48673)
GitOrigin-RevId: c62c0b629ebf941d4a6e5ad47cfa3066000b72c6
2020-12-18 22:38:34 +00:00
Anna Kozlova a7e57f5e1a java preview warning: fix messed quotes (IDEA-258134)
GitOrigin-RevId: 2b6452df0b5eae4fb60e162efefd490cc31e872b
2020-12-18 20:19:27 +00:00
Anna Kozlova 155212625a resource bundles: remove redundant handler (IDEA-258166)
no need to unexpectedly select first file in a bundle during rename, automatic renamer would suggest to rename them all anyway

GitOrigin-RevId: 85a52f48d157f0ef8c498c2743f1d213055be82c
2020-12-18 20:19:26 +00:00
Maxim Degtyarev c62db841c0 Fix NPE inside ExceptionRangeCFG::toString() for finally exception range
PR #1026

GitOrigin-RevId: 18492644f44796505f5a4be9471344c1ce1d0f3a
2020-12-18 19:17:05 +00:00
Anna Kozlova 1c6857ec2d java create class from new: don't create non-static inner if new expression can't be used afterwards (IDEA-97433)
GitOrigin-RevId: 89616c077ca5141db53b624ae08bc54b04d53cae
2020-12-18 19:01:32 +00:00
Anna Kozlova f535bd830e java create class from usage: setup super ref for created nested class (IDEA-257288)
GitOrigin-RevId: c5a37a119f50aa3468c74ce621108e00e1168852
2020-12-18 19:01:29 +00:00
Sergey Malenkov faea4ac0f3 Remove old non-safe icon
GitOrigin-RevId: 6f02b7eeb7e2c8982921aa3a4037bae3df69aedf
2020-12-18 18:33:19 +00:00
Alexey Merkulov 31465da6e2 IFT-115 Fix decryption for MacOS shortcuts
GitOrigin-RevId: 2b69cf2a66c953af5f7952965b44d6b771d4ebbb
2020-12-18 16:53:39 +00:00
Dmitry Avdeev 72632db3df IDEA-256792 New run configuration show red error for Main class comes from libraries (when enabling "Include non-project items")
GitOrigin-RevId: e2157ceba45e5e3fc4c461a19629329f71fead3f
2020-12-18 16:42:26 +00:00
Anton Tarasov 7acaa814c1 Use JBCefBrowserBase in JBCefJSQuery
GitOrigin-RevId: 4ad06ec0e982136225c51f7ba0f852428f1e4a8b
2020-12-18 15:46:12 +00:00
Eugene Zhuravlev 08b8783881 added diagnostic (IDEA-CR-69837)
GitOrigin-RevId: 70f5cbc2eca17da66c81673093b80fdb1ba5155f
2020-12-18 15:40:54 +00:00
Kirill Kirichenko 5044dccdfa IDEA-201983 High contrast theme: there is no separator on a button with separator
GitOrigin-RevId: a7f2b96780823d2667f069d0d742f54003731a43
2020-12-18 15:37:49 +00:00
Dmitry Batkovich 4addd957d6 move internal methods from public api
GitOrigin-RevId: e20016b79d21a526704c731ba33e6977f3fcb5e4
2020-12-18 15:02:02 +00:00
Alexey Kudravtsev dd87fe5a6a IDEA-CR-69839 followup: change the equals algorithm - handle comparing "C:/temp/file.txt" to "c:/temp/file.txt" correctly
GitOrigin-RevId: a5ecc20498f0ac53e6fdda4d63c42dfb15aae145
2020-12-18 14:23:31 +00:00
Alexey Kudravtsev bcc8649f6f clearer message
GitOrigin-RevId: 5ffcc7da0058c8cdd6473b27661523eaceb2a8b9
2020-12-18 14:23:29 +00:00
Sergey Malenkov 6132294ac4 Allow to specify null instead of component
GitOrigin-RevId: 9fff8697e36ba00ea60e4edcff31db14343c43d1
2020-12-18 14:16:42 +00:00
Nikolay Chashnikov 3c512ef615 [workspace model] fix changing storage format inside Project Structure dialog (IDEA-257156)
'model' parameter in ClasspathStorage.setStorageType may refer to not yet committed ModifiableRootModel, so we need to take content roots from it, not from ModuleRootManager.

GitOrigin-RevId: babdd10842115e38141aebd35790b3298f32b827
2020-12-18 14:16:17 +00:00
Sergey Malenkov 4702a69f97 Add toString method
GitOrigin-RevId: 2aa1396878587a91fc8512ba64001c1d7a9f5e5b
2020-12-18 13:35:31 +00:00
Konstantin Hudyakov 6c835f4c51 [IFT] Edit lessons, add restores and warnings
GitOrigin-RevId: a7aaabfac08d966dd48480a6bbfb8cd7802b3891
2020-12-18 13:30:18 +00:00
Konstantin Hudyakov e4af561bcb [IFT] Edit navigate task in FileStructureLesson and refactor
GitOrigin-RevId: d24371ac5f86592bc04c84132222cafa6c402eb1
2020-12-18 13:30:18 +00:00
Konstantin Hudyakov 906df0e494 [IFT] Add default restore delay property to Registry
This property may be needed to change this value if something went wrong with restore checks after release.

GitOrigin-RevId: b012364adadc01ebc3bf75150714f022875d5ad6
2020-12-18 13:30:17 +00:00
Konstantin Hudyakov 518af66685 [IFT] Edit restore checks processing and add notifications without restore link (warnings)
GitOrigin-RevId: 92d58a9164c11f8faf93c075647b74a5ca3f1229
2020-12-18 13:30:16 +00:00
Eugene Zhuravlev 87164ae45e CWM scrambling
GitOrigin-RevId: 5b45986e27197c7de2e410e73feb6b6beb242e1f
2020-12-18 13:26:05 +00:00
Vladislav.Soroka 47881c4a1e [Gradle] prepend a module name resolved for a build included into buildSrc with the build name IDEA-257835
GitOrigin-RevId: 3d8cefc86239f6bbab1b298abe4c9330a14d53c1
2020-12-18 12:42:29 +00:00
Dmitry Batkovich f99a286b5e refactor FSRecords storage (next attempt)
GitOrigin-RevId: edde88ae63ec3fd76ba185cf344736a4150928b6
2020-12-18 12:40:40 +00:00
Dmitry Batkovich fbbda80ec3 delete DupOutputStream
GitOrigin-RevId: cd8ad0a47f83278d55d1f0f14165f209cc1df72c
2020-12-18 12:40:38 +00:00
Dmitry Batkovich d878c12f6c inspection view: check updating alarm not disposed EA-237106
GitOrigin-RevId: ec2584fd6ab2915e40f3728b5d530ba18c971f80
2020-12-18 12:40:36 +00:00
Dmitry Batkovich 3c17b8c2f2 inspection view: access disposed tree should not throw NPE-s EA-239089
GitOrigin-RevId: a3e2dc9db235e0b3e2321592ef35d7a28e3d74ce
2020-12-18 12:40:35 +00:00
Dmitry Batkovich f4dd99201c fix NPE when accessing invalid element EA-228686
GitOrigin-RevId: 4b3def56cb0652396b1d33f5ff3db33c6a010af2
2020-12-18 12:40:33 +00:00
Sergey Malenkov 6a423a230e Add utility method to simplify access to the global font
GitOrigin-RevId: 89f1e2251a4e8cf2b7f0bc3583950587f9a72a90
2020-12-18 12:39:26 +00:00