Anna.Kozlova
1601753a54
trivial functional: fix dangling return (IDEA-229670)
...
GitOrigin-RevId: f69be223e2d79dae71ce7fb82aeb0f82eb5e5cb6
2019-12-30 11:35:31 +00:00
Tagir Valeev
755c4647e2
PossibleHeapPollutionVarargs: do not warn on compact constructor; do not warn on record if canonical constructor is present
...
Review ID: IDEA-CR-56682
GitOrigin-RevId: cdd1ee44e8679a374ff495d852a22c9e612149b8
2019-12-28 06:40:55 +00:00
Tagir Valeev
042c0bff53
Create records from new (IDEA-229796)
...
GitOrigin-RevId: 38ffe8494d90cb7d5d83c5cfcc923259aac1e05f
2019-12-25 07:43:46 +00:00
Tagir Valeev
4bd6f5a43b
Use CommonQuickFixBundle
...
GitOrigin-RevId: 742c76ffb768bed2ce9aec4b11f7fc911d7f624c
2019-12-25 03:42:32 +00:00
Roman.Ivanov
2cc8b2c194
suggest AddEmptyRecordHeaderFix in case of no record header
...
GitOrigin-RevId: ac6a585e1ccdb091a02d49d2f8bf2e55bf2114cb
2019-12-24 08:41:04 +00:00
Tagir Valeev
20630cfd4f
IDEA-160797 Support Objects.requireNonNull as field initialization in constructor
...
GitOrigin-RevId: 738f0e842ded8e9d88ef4432cd6c093173400a89
2019-12-24 08:41:04 +00:00
Tagir Valeev
39a9039c38
Proper checks for missing implementation of abstract method in records (IDEA-228460, IDEA-CR-56772)
...
GitOrigin-RevId: 1be11a80e1721116959dc24cb79c9feb4065f4ef
2019-12-19 06:33:37 +00:00
Tagir Valeev
662cb5deae
Handle compact constructor in regular class: quick-fix to add () (IDEA-228460)
...
GitOrigin-RevId: c019e19e8023c0209f6e5ed54f8a486689bb0e0a
2019-12-18 11:37:51 +00:00
Tagir Valeev
028a78cae3
Error highlighting for records: record bodies, record members (8.10.2, 8.10.3) IDEA-228460
...
Also ChangeModifierIntention: do not suggest to change component accessor access modifier
Also AddExceptionToThrowsFix: do not suggest to add throws to component accessor
GitOrigin-RevId: 6ce3d43f5160c075a2c66ac01af895a1212cc9a3
2019-12-18 06:32:21 +00:00
Tagir Valeev
2c22ee32a7
IDEA-229320 Heap pollution warning for records
...
GitOrigin-RevId: 1e870db7c171c02af5d01c74ca631ab2dafe43ef
2019-12-17 11:02:18 +00:00
Tagir Valeev
916cc45005
Constant methods: boxing support
...
GitOrigin-RevId: 6fa28da7fe823d2e5bea0ecabe1e49e34e55d7b6
2019-12-14 03:44:42 +00:00
Anna.Kozlova
f9f5d09f87
inspections: ensure local paired inspection uses display name of the global one
...
GitOrigin-RevId: 8dfb2236e2ae4016024102e8195e5ce0df954500
2019-12-13 09:34:22 +00:00
Anna Kozlova
1bb1545bf7
redundant suppression: fix alternative id check (IDEA-227827)
...
GitOrigin-RevId: b80fe1fcc492f90f26bfd6f337d1c6947820e461
2019-11-28 20:32:03 +00:00
Tagir Valeev
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 Valeev
25dc0f385c
s.substring(s.length()-fooLen).equals(foo) -> s.endsWith(foo)
...
GitOrigin-RevId: 5dbd78e6359770f9680ef25dcf699297b5a28e46
2019-11-24 02:05:56 +00:00
Tagir Valeev
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 Valeev
7f8d9a2372
substring(x).indexOf(y) -> indexOf(y, x) (IDEA-219640, case#3)
...
GitOrigin-RevId: aab34215f1dc50e33af12cc56954dc17b9104318
2019-11-22 06:36:34 +00:00
Artemiy Sartakov
7e0b374d13
OptionalToIfInspection: preserve comments
...
GitOrigin-RevId: 7e97d9997d6f0eaca40e1e9cd720dc27e7ca687a
2019-11-12 10:34:02 +00:00
Tagir Valeev
4cbd3eb2ca
IDEA-226296 Forward compatibility inspection: fix testdata (IDEA-CR-54774)
...
GitOrigin-RevId: 4105f4fc0aa491ef5079e2a21830ef32ebd54b70
2019-11-07 02:40:58 +00:00
Tagir Valeev
9ab9138cdf
IDEA-226284 Warn about unqualified 'yield' method usage
...
GitOrigin-RevId: ec260801f8968d0f70f919cf4104fd2c9a3498ed
2019-11-07 02:40:58 +00:00
Tagir Valeev
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 Valeev
b04be5706b
ReplaceCollectionStreamFix: handle comments
...
GitOrigin-RevId: 739c49a0f24a980ce19574b70cfe35c88c657026
2019-11-07 02:40:58 +00:00
Anna Kozlova
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 Valeev
5939a9e847
OptionalIsPresentInspection: support parentheses
...
GitOrigin-RevId: a69adf66817d6e9e23f1777ddef64d8aec0d49c6
2019-10-17 06:31:25 +00:00
Tagir Valeev
3806f7df31
Redundant files removed (left after merging several tests together)
...
GitOrigin-RevId: 15755e36cbdfefdf493ce28c9b2155e7b2daa7d6
2019-10-14 11:04:47 +00:00
Tagir Valeev
a5474b0313
IDEA-207434: add generic args when necessary (IDEA-CR-53399)
...
GitOrigin-RevId: a273d8198f8a19921a4075ed93c81fd84a8bee63
2019-10-14 10:32:59 +00:00
Alexey Kudravtsev
2b081e39ab
make some clients independent of order of results in Query.findAll()
...
GitOrigin-RevId: df14c535f9ff642399ed42e123563dac3db8bb20
2019-10-11 15:33:13 +00:00
Tagir Valeev
c78392d802
IDEA-177238 QuickFix for "Casting ... to ... may produce ClassCastException"
...
GitOrigin-RevId: 000f7b616edb300b98cdefe04d954c5023365f8c
2019-10-11 12:32:08 +00:00
Tagir Valeev
6fdffcb1b5
IDEA-207434 Comprator.comparing(Map.Entry::getKey) -> Map.Entry.comparingByKey()
...
GitOrigin-RevId: 9481f1e30f7262576ae132295fa27f9777396896
2019-10-11 09:06:02 +00:00
Roman.Ivanov
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 Leijdekkers
311f965f20
on demand static import -> on-demand static import (IDEA-221475)
...
GitOrigin-RevId: 3cdbe9a8fbad5b785934f8f6280e4140cb8aa75c
2019-10-03 16:04:14 +00:00
Roman.Ivanov
eac8432bb6
Basic test for method extract: IDEA-CR-53127
...
GitOrigin-RevId: 3c41530c54d0d26076f65bc38f23993b82e7f56f
2019-10-02 15:08:26 +00:00
Anna Kozlova
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 Sartakov
4f473648ee
OptionalToIfInspection: tests for parenthesized expression and partial chains (IDEA-CR-52832)
...
GitOrigin-RevId: cbfa6550167e9dd9e157ab860a6ead486938f2cd
2019-09-25 08:31:20 +00:00
Tagir Valeev
f127b4491c
DeleteSideEffectsAwareFix: fix removal of for-update statement
...
GitOrigin-RevId: 15a64c215cc98f4f94b76edc3486bcf762a8be28
2019-09-24 05:31:27 +00:00
Bas Leijdekkers
ea73b88a7c
psi: don't insert unnecessary parentheses when replacing expression (IDEA-220761)
...
GitOrigin-RevId: 7fe48d0f72581221a633373933b941c09b2c69ed
2019-08-22 01:50:10 +03:00
Yuriy Artamonov
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 Kozlova
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 Kozlova
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 Sartakov
d98814d304
OptionalToIfInspection: added missing imports (IDEA-212269)
...
GitOrigin-RevId: afbeaa1f10b2266cd1401da83b71cf0bf6862824
2019-08-07 17:02:43 +03:00
Artemiy Sartakov
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 Valeev
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 Kozlova
774401fb2f
extract if: keep necessary parenthesis (IDEA-219639)
...
GitOrigin-RevId: 9582978807c159f8302a1781a5f3388fb0130ad9
2019-08-06 13:03:24 +03:00
Anna Kozlova
616e3ca030
method references: allow access to protected methods through super (IDEA-217862)
...
GitOrigin-RevId: f1d86f6127a64146e87998423f3034e38a46409c
2019-08-05 23:03:36 +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
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
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
Tagir Valeev
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 Valeev
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 Kozlova
922040b4dd
java: remove FQNs from change type fixes (IDEA-145570)
...
GitOrigin-RevId: d6bca8039c7d47615cb40ed2def7f5572784e99b
2019-07-13 00:03:02 +03:00