Commit Graph
1689 Commits
Author SHA1 Message Date
Tagir Valeevandintellij-monorepo-bot 98792cbf73 Revert substring(x).indexOf(y) -> indexOf(y, x) (IDEA-219640, case#3); was incorrect replacement
GitOrigin-RevId: f62ccdd76bd6353fe1bce95fe17ab4b3ca507dce
2019-11-25 09:31:23 +00:00
Tagir Valeevandintellij-monorepo-bot 25dc0f385c s.substring(s.length()-fooLen).equals(foo) -> s.endsWith(foo)
GitOrigin-RevId: 5dbd78e6359770f9680ef25dcf699297b5a28e46
2019-11-24 02:05:56 +00:00
Tagir Valeevandintellij-monorepo-bot 476b3ff5bb substring(x, x+y.length()).equals(y) -> startsWith(y, x) (IDEA-226148, case#1)
GitOrigin-RevId: 04fe1be3e9f48783ad8d95897497ea55109453f5
2019-11-22 06:36:34 +00:00
Tagir Valeevandintellij-monorepo-bot 7f8d9a2372 substring(x).indexOf(y) -> indexOf(y, x) (IDEA-219640, case#3)
GitOrigin-RevId: aab34215f1dc50e33af12cc56954dc17b9104318
2019-11-22 06:36:34 +00:00
Artemiy Sartakovandintellij-monorepo-bot 7e0b374d13 OptionalToIfInspection: preserve comments
GitOrigin-RevId: 7e97d9997d6f0eaca40e1e9cd720dc27e7ca687a
2019-11-12 10:34:02 +00:00
Tagir Valeevandintellij-monorepo-bot 4cbd3eb2ca IDEA-226296 Forward compatibility inspection: fix testdata (IDEA-CR-54774)
GitOrigin-RevId: 4105f4fc0aa491ef5079e2a21830ef32ebd54b70
2019-11-07 02:40:58 +00:00
Tagir Valeevandintellij-monorepo-bot 9ab9138cdf IDEA-226284 Warn about unqualified 'yield' method usage
GitOrigin-RevId: ec260801f8968d0f70f919cf4104fd2c9a3498ed
2019-11-07 02:40:58 +00:00
Tagir Valeevandintellij-monorepo-bot 50b74c2848 IDEA-225861 Detect a case related to String transformation where result can be predicted before transformation
GitOrigin-RevId: 3448b86219bebc4914cccae89e7e46db67d81128
2019-11-07 02:40:58 +00:00
Tagir Valeevandintellij-monorepo-bot b04be5706b ReplaceCollectionStreamFix: handle comments
GitOrigin-RevId: 739c49a0f24a980ce19574b70cfe35c88c657026
2019-11-07 02:40:58 +00:00
Anna Kozlovaandintellij-monorepo-bot ddf076a38c redundant suppression: simple global tools do not start if not enabled => no need to explicit check (IDEA-225676)
new inspection context doesn't contain any tools so one need to initialize context with tools explicitly to perform checks there

GitOrigin-RevId: b43cbccc70651b8a43783970af11a81cfb5b6847
2019-11-07 02:40:58 +00:00
Tagir Valeevandintellij-monorepo-bot 5939a9e847 OptionalIsPresentInspection: support parentheses
GitOrigin-RevId: a69adf66817d6e9e23f1777ddef64d8aec0d49c6
2019-10-17 06:31:25 +00:00
Tagir Valeevandintellij-monorepo-bot 3806f7df31 Redundant files removed (left after merging several tests together)
GitOrigin-RevId: 15755e36cbdfefdf493ce28c9b2155e7b2daa7d6
2019-10-14 11:04:47 +00:00
Tagir Valeevandintellij-monorepo-bot a5474b0313 IDEA-207434: add generic args when necessary (IDEA-CR-53399)
GitOrigin-RevId: a273d8198f8a19921a4075ed93c81fd84a8bee63
2019-10-14 10:32:59 +00:00
Alexey Kudravtsevandintellij-monorepo-bot 2b081e39ab make some clients independent of order of results in Query.findAll()
GitOrigin-RevId: df14c535f9ff642399ed42e123563dac3db8bb20
2019-10-11 15:33:13 +00:00
Tagir Valeevandintellij-monorepo-bot c78392d802 IDEA-177238 QuickFix for "Casting ... to ... may produce ClassCastException"
GitOrigin-RevId: 000f7b616edb300b98cdefe04d954c5023365f8c
2019-10-11 12:32:08 +00:00
Tagir Valeevandintellij-monorepo-bot 6fdffcb1b5 IDEA-207434 Comprator.comparing(Map.Entry::getKey) -> Map.Entry.comparingByKey()
GitOrigin-RevId: 9481f1e30f7262576ae132295fa27f9777396896
2019-10-11 09:06:02 +00:00
Roman.Ivanovandintellij-monorepo-bot 9b798e3ece SortContentAction: replace with proper annotation member value instead of expression : IDEA-224254
GitOrigin-RevId: 687fc8771babc84d3ebc07ad4fe04c4543fed36e
2019-10-08 10:01:33 +00:00
Bas Leijdekkersandintellij-monorepo-bot 311f965f20 on demand static import -> on-demand static import (IDEA-221475)
GitOrigin-RevId: 3cdbe9a8fbad5b785934f8f6280e4140cb8aa75c
2019-10-03 16:04:14 +00:00
Roman.Ivanovandintellij-monorepo-bot eac8432bb6 Basic test for method extract: IDEA-CR-53127
GitOrigin-RevId: 3c41530c54d0d26076f65bc38f23993b82e7f56f
2019-10-02 15:08:26 +00:00
Anna Kozlovaandintellij-monorepo-bot bb650d3c68 redundant suppressions on the fly: check alternative ids, old suppress ids (IDEA-223759)
GitOrigin-RevId: 3d1332fd4cdb1bdd39c26de6713cf6f464fc61e3
2019-10-01 10:11:58 +00:00
Artemiy Sartakovandintellij-monorepo-bot 4f473648ee OptionalToIfInspection: tests for parenthesized expression and partial chains (IDEA-CR-52832)
GitOrigin-RevId: cbfa6550167e9dd9e157ab860a6ead486938f2cd
2019-09-25 08:31:20 +00:00
Tagir Valeevandintellij-monorepo-bot f127b4491c DeleteSideEffectsAwareFix: fix removal of for-update statement
GitOrigin-RevId: 15a64c215cc98f4f94b76edc3486bcf762a8be28
2019-09-24 05:31:27 +00:00
Bas Leijdekkersandintellij-monorepo-bot ea73b88a7c psi: don't insert unnecessary parentheses when replacing expression (IDEA-220761)
GitOrigin-RevId: 7fe48d0f72581221a633373933b941c09b2c69ed
2019-08-22 01:50:10 +03:00
Yuriy Artamonovandintellij-monorepo-bot 947520872e IDEA-220832 Create File intention: don't suggest generated sources root as possible target
GitOrigin-RevId: 302317ca1cb6bbcb71604d58db3b1d2f7c5480ee
2019-08-19 13:03:31 +03:00
Anna Kozlovaandintellij-monorepo-bot 54eb66996d junit: check for junit classes available in scope before proceeding with costly checks (SCL-16058)
GitOrigin-RevId: 34f3dda8a83aada3c78c9888aa995d010af2a62a
2019-08-15 18:04:21 +03:00
Anna Kozlovaandintellij-monorepo-bot c1b79848e1 java: disable heavy weight add type cast for lambda bodies with failed inference on top
for long chained calls with many type errors, DFA checks may be too slow

GitOrigin-RevId: 851604a1252743c92d8c33973845cdda7bbb996a
2019-08-12 19:04:15 +03:00
Artemiy Sartakovandintellij-monorepo-bot d98814d304 OptionalToIfInspection: added missing imports (IDEA-212269)
GitOrigin-RevId: afbeaa1f10b2266cd1401da83b71cf0bf6862824
2019-08-07 17:02:43 +03:00
Artemiy Sartakovandintellij-monorepo-bot 6f1efb8fc0 OptionalToIfInspection: added inspection to desugar optional chain to sequence of if statements (IDEA-212269)
GitOrigin-RevId: c83b70e05544529b3dfffe24bc87997910edcb56
2019-08-07 17:02:43 +03:00
Tagir Valeevandintellij-monorepo-bot 2572c79c56 CollectMigration.NewListTerminal: support Guava collection constructors (IDEA-219934)
Also remove .distinct() automatically when unnecessary.

GitOrigin-RevId: 504dd9e645f9492a4142c0793c42188912afdde9
2019-08-07 12:04:38 +03:00
Anna Kozlovaandintellij-monorepo-bot 774401fb2f extract if: keep necessary parenthesis (IDEA-219639)
GitOrigin-RevId: 9582978807c159f8302a1781a5f3388fb0130ad9
2019-08-06 13:03:24 +03:00
Anna Kozlovaandintellij-monorepo-bot 616e3ca030 method references: allow access to protected methods through super (IDEA-217862)
GitOrigin-RevId: f1d86f6127a64146e87998423f3034e38a46409c
2019-08-05 23:03:36 +03:00
Tagir Valeevandintellij-monorepo-bot ae33c73266 ReturnReplacementContext#extractTail: leave blank line in place (IDEA-219142)
GitOrigin-RevId: 30a93c99fc47f4d277b45cabe9c72b4a41b05846
2019-08-05 00:03:02 +03:00
Yuriy Artamonovandintellij-monorepo-bot 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
Artemiy Sartakovandintellij-monorepo-bot 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
Tagir Valeevandintellij-monorepo-bot 30b914be28 IDEA-216810 Unexpected behaviour with "Transform Method to Single Exit Point" / Inline refactoring
GitOrigin-RevId: 31a77ebb86f3da40caeda5e8ca60ccec51ebfb13
2019-07-16 15:01:49 +03:00
Tagir Valeevandintellij-monorepo-bot 50ff44aebd IDEA-218391 Transform to single return: remove excessive braces in if-else chains.
GitOrigin-RevId: b13d36218843ae5ff7fbfbcadc898113ad4c9bc1
2019-07-16 15:01:49 +03:00
Anna Kozlovaandintellij-monorepo-bot 922040b4dd java: remove FQNs from change type fixes (IDEA-145570)
GitOrigin-RevId: d6bca8039c7d47615cb40ed2def7f5572784e99b
2019-07-13 00:03:02 +03:00
Roman.Ivanovandintellij-monorepo-bot 5652d26604 Inlay hints: do not chop list in presence of comments: IDEA-218083
GitOrigin-RevId: e442ad27055bb59888f2173150ac95de75b7f87b
2019-07-12 08:28:33 +03:00
Max Medvedevandintellij-monorepo-bot adc488ca04 Revert "IDEA-217722 Encapsulate field: remove obsolete tests"
This reverts commit 8a121a92

GitOrigin-RevId: 79821c52e6fdfd8587fb523f91f393523ddace77
2019-07-11 17:42:27 +03:00
Roman.Ivanovandintellij-monorepo-bot 1783bbf417 JavaJoinListAction: do not suggest intention when comments exists
GitOrigin-RevId: ad790d5b4abde39deea670873eb4b34f2a01828c
2019-07-09 14:02:07 +03:00
Anna Kozlovaandintellij-monorepo-bot 2e17e61cae remove language level 12 preview for 2019.3 release
IDEA would support latest preview only

GitOrigin-RevId: 6609e80acced9e1be07880c14de239f75afcc78b
2019-07-09 00:03:25 +03:00
Artemiy Sartakovandintellij-monorepo-bot 642c65dd11 MethodReturnTypeFix: highlight only return statements when method return type doesn't match expected (IDEA-216275)
GitOrigin-RevId: d5f7dc3b03d68d249ba29532b0e8c0555cae60d6
2019-07-08 15:09:05 +03:00
Max Medvedevandintellij-monorepo-bot 384a7b1bef IDEA-217722 Encapsulate field: remove obsolete tests
GitOrigin-RevId: 8a121a92dc65bb8dd50a9ce789667cd8e46d5516
2019-07-07 15:01:42 +03:00
Artemiy Sartakovandintellij-monorepo-bot 42d733a694 MethodReturnTypeFix: updated fix to change method return type based on return statements in method body (IDEA-216275)
GitOrigin-RevId: e97990950039123c8c41921a71342b8ed60afdee
2019-07-04 09:02:24 +03:00
Roman Shevchenkoandintellij-monorepo-bot 1520e434af [java] 'yield' statements support in the side-effect extractor
GitOrigin-RevId: a6020c6427a05f0bcd6f6987a13252929854c547
2019-07-02 06:52:16 +03:00
Anna Kozlovaandintellij-monorepo-bot e892dae139 java: disable split declaration & assignment inside classes/lambdas/switches
GitOrigin-RevId: bf3dbb61f0f7c69f9310e20931a16af0dda2050d
2019-07-02 06:52:16 +03:00
Anna Kozlovaandintellij-monorepo-bot 24d1d27b1e switch expressions 2.0: expected type by yield
GitOrigin-RevId: f4e396ddc90d66790db044525611c536c3f620fa
2019-07-02 06:52:16 +03:00
Roman.Ivanovandintellij-monorepo-bot a411f20f37 intention to put args/parameters on single line: IDEA-209924
GitOrigin-RevId: d603666f0de7fb1f3be09a2f3616c6fa552102d2
2019-07-02 06:52:16 +03:00
Roman.Ivanovandintellij-monorepo-bot 002e7efd27 apply chop arguments for calls only
GitOrigin-RevId: 327173f16c882df5d72743d3bee2bb114f069d58
2019-07-02 06:52:16 +03:00
Roman.Ivanovandintellij-monorepo-bot 0751454160 implement put parameters/arguments on separate lines intention
GitOrigin-RevId: a786006ab3d744c7e8cbec2be8ae10eca8902e82
2019-07-02 06:52:16 +03:00