Commit Graph
3959 Commits
Author SHA1 Message Date
Anna.Kozlovaandintellij-monorepo-bot 1601753a54 trivial functional: fix dangling return (IDEA-229670)
GitOrigin-RevId: f69be223e2d79dae71ce7fb82aeb0f82eb5e5cb6
2019-12-30 11:35:31 +00:00
Tagir Valeevandintellij-monorepo-bot 43e64e1c56 Patterns resolve: stop at switch label; filter by name before doing control flow analysis when possible (IDEA-229846)
Review ID: IDEA-CR-56992

GitOrigin-RevId: 4264da45582f5d38e3b5630184d8ab762f30575b
2019-12-28 12:05:19 +00:00
Tagir Valeevandintellij-monorepo-bot 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 Valeevandintellij-monorepo-bot 2380906af8 HighlightControlFlowUtil: disable assignment to pattern variables
GitOrigin-RevId: 09c4aa42068ce0258543a17546404fcdec952404
2019-12-27 09:01:34 +00:00
Tagir Valeevandintellij-monorepo-bot 0df312338d IDEA-229846 Resolve for pattern matching (except switch handling)
GitOrigin-RevId: b8addebac00f681641d5cef1089fa6f7d2d668a7
2019-12-27 07:33:29 +00:00
Tagir Valeevandintellij-monorepo-bot 20b13c9122 Records: report canonical constructor parameter name mismatch (IDEA-228460)
GitOrigin-RevId: d2c5c75f2a9066bd949ad503ad6fcbd71c594d18
2019-12-26 06:03:46 +00:00
Roman.Ivanovandintellij-monorepo-bot 9f7fd6f214 Java Records: do not generate non-physical assignments for records, handle it separately
GitOrigin-RevId: 73d10fc5b48e08efd4f0e0bbee019b7263a7e098
2019-12-26 05:32:27 +00:00
Tagir Valeevandintellij-monorepo-bot 042c0bff53 Create records from new (IDEA-229796)
GitOrigin-RevId: 38ffe8494d90cb7d5d83c5cfcc923259aac1e05f
2019-12-25 07:43:46 +00:00
Tagir Valeevandintellij-monorepo-bot 4bd6f5a43b Use CommonQuickFixBundle
GitOrigin-RevId: 742c76ffb768bed2ce9aec4b11f7fc911d7f624c
2019-12-25 03:42:32 +00:00
Tagir Valeevandintellij-monorepo-bot ee428f70e6 Local records support (IDEA-228460)
GitOrigin-RevId: 6bd11c1161f4773570573910d88c7a395f972e3c
2019-12-24 10:05:47 +00:00
Roman.Ivanovandintellij-monorepo-bot 2cc8b2c194 suggest AddEmptyRecordHeaderFix in case of no record header
GitOrigin-RevId: ac6a585e1ccdb091a02d49d2f8bf2e55bf2114cb
2019-12-24 08:41:04 +00:00
Roman.Ivanovandintellij-monorepo-bot 158abe45b8 create compact constructor light parameter list, make parameter list optional
GitOrigin-RevId: a8f67df9897d8adfece17d6d376c40776f25476d
2019-12-24 08:41:04 +00:00
Tagir Valeevandintellij-monorepo-bot 20630cfd4f IDEA-160797 Support Objects.requireNonNull as field initialization in constructor
GitOrigin-RevId: 738f0e842ded8e9d88ef4432cd6c093173400a89
2019-12-24 08:41:04 +00:00
Tagir Valeevandintellij-monorepo-bot e1f4bf5bcf Accept mismatch in varargness of record and canonical constructor
GitOrigin-RevId: d377578d8cd5ef67e5d2241f956792e887aa80b2
2019-12-24 08:41:04 +00:00
Tagir Valeevandintellij-monorepo-bot 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 Valeevandintellij-monorepo-bot 4bc45f31f0 Records extend the Record class (IDEA-228460)
GitOrigin-RevId: f99f9cfbe07cec22bc34596366c97d62d024e4b2
2019-12-19 06:13:56 +00:00
Tagir Valeevandintellij-monorepo-bot 14c82dcf4f JavaPsiRecordUtil: isCanonicalConstructor fixed for record w/o components; testdata fixed (IDEA-CR-56742)
GitOrigin-RevId: a179e7ddf958f6f7c76e72187a0044d2da6cc936
2019-12-18 12:02:04 +00:00
Tagir Valeevandintellij-monorepo-bot 53986a2bd7 Error highlighting for records: compact constructors (8.10.5) IDEA-228460
GitOrigin-RevId: d2ffbe570a06768989e48bf88eaf503a847574d4
2019-12-18 11:37:51 +00:00
Tagir Valeevandintellij-monorepo-bot 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 Valeevandintellij-monorepo-bot f29de7206f Error highlighting for records: check that fields are initialized in canonical constructor (8.10.4) IDEA-228460
GitOrigin-RevId: 6b1cc0b27cc34a6b1f975316a667d606d6dd6a7b
2019-12-18 10:32:28 +00:00
Tagir Valeevandintellij-monorepo-bot 811b8fca50 Error highlighting for records: record constructors (except compact) (8.10.4) IDEA-228460
Also ChangeModifierIntention: do not suggest to change canonical constructor access modifier
Also AddExceptionToThrowsFix: do not suggest to add throws to canonical constructor

GitOrigin-RevId: 43c21af324c35a6b65633ab8cc3882bb972f993f
2019-12-18 10:32:28 +00:00
Tagir Valeevandintellij-monorepo-bot 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 Valeevandintellij-monorepo-bot 3ff5ba7461 Records error highlighting: well-formedness; components (part of IDEA-228460)
GitOrigin-RevId: f72bba51738ed7d89dbbebf43311a049c23d317f
2019-12-17 11:02:18 +00:00
Tagir Valeevandintellij-monorepo-bot 2c22ee32a7 IDEA-229320 Heap pollution warning for records
GitOrigin-RevId: 1e870db7c171c02af5d01c74ca631ab2dafe43ef
2019-12-17 11:02:18 +00:00
Peter Gromovandintellij-monorepo-bot 4b12b7a4e3 java: avoid recursion prevention when checking imported vs inherited superclass (IDEA-67385, IDEA-228814)
GitOrigin-RevId: 2a246ced1d66c4c3c9df71dcd51a491b471a744c
2019-12-16 19:36:07 +00:00
Tagir Valeevandintellij-monorepo-bot 916cc45005 Constant methods: boxing support
GitOrigin-RevId: 6fa28da7fe823d2e5bea0ecabe1e49e34e55d7b6
2019-12-14 03:44:42 +00:00
Anna.Kozlovaandintellij-monorepo-bot f9f5d09f87 inspections: ensure local paired inspection uses display name of the global one
GitOrigin-RevId: 8dfb2236e2ae4016024102e8195e5ce0df954500
2019-12-13 09:34:22 +00:00
Alexey Kudravtsevandintellij-monorepo-bot aab47de9b7 fix occasional test fail when the future is completed successfully but the status is not set to EXECUTED yet, check for test annotators actually annotate something
GitOrigin-RevId: 93f8dd0391ae62e02102eecfe12bc940816fa3dd
2019-12-11 10:02:43 +00:00
Roman.Ivanovandintellij-monorepo-bot f297157108 Add records feature and validation
GitOrigin-RevId: fc64ecd6fe81020abbcccaacf1b447e0ad2ab678
2019-12-05 04:41:15 +00:00
Anna Kozlovaandintellij-monorepo-bot 0580ad0043 don't prohibit caching if overload resolution is impossible (IDEA-221094)
exactly one candidate is available

GitOrigin-RevId: 4c6d5b4eef79fb60af46d8d9db9f7e49adb2f8c4
2019-12-04 19:31:48 +00:00
Anna.Kozlovaandintellij-monorepo-bot 4ad4e7d908 java overload resolution: fix NPE
found by property testing

GitOrigin-RevId: b45cb07402ad58a37886b7f1b5afb62bca2746fe
2019-12-04 09:38:15 +00:00
Anna.Kozlovaandintellij-monorepo-bot 21e434894f java inference: stop when argument has no associated formal parameter
GitOrigin-RevId: cbc4e435f6e03bd06eac4dcf21196bdd61dc6c3d
2019-12-03 16:04:11 +00:00
Anna Kozlovaandintellij-monorepo-bot 1bb1545bf7 redundant suppression: fix alternative id check (IDEA-227827)
GitOrigin-RevId: b80fe1fcc492f90f26bfd6f337d1c6947820e461
2019-11-28 20:32:03 +00:00
Anna.Kozlovaandintellij-monorepo-bot c20dfc0165 java inference: ignore method reference constraints when starting from them
EA-209460 - IAE: ObjectUtils.$$$reportNull$$$

GitOrigin-RevId: 8476b832fcc1c85c10aed6ea56f65645bfd02b03
2019-11-28 10:38:15 +00:00
Alexey Kudravtsevandintellij-monorepo-bot 76b937f25d fix non-ascii chars inspection in Groovy with its twisted PSI where method.getNameIdentifier()==some random light element
GitOrigin-RevId: cda967acd545b533dcfcfbeeeaef128a8f091950
2019-11-25 15:09:30 +00:00
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
Daniel Schmidtandintellij-monorepo-bot 909433482c Differentiate between type parameters and parameters (IDEA-226683)
PR#1243

GitOrigin-RevId: a91176d9f95e2803da7c1973c58ce4ee492fb703
2019-11-19 11:09:41 +00:00
Anna.Kozlovaandintellij-monorepo-bot d4ff582489 assert no type execution under overload lock for diamonds
IDEA-CR-55327

GitOrigin-RevId: e2b1043a41b9548df3c2eb263a27da6d6c22b6be
2019-11-19 09:12:58 +00:00
Tagir Valeevandintellij-monorepo-bot 3fa35e0750 testResolveDiamondBeforeOuterCall simplified (TreeSet ctor overloads don't matter here)
GitOrigin-RevId: 6b303239bed1ffcfd94cbd54f781541e38dc5837
2019-11-15 10:05:32 +00:00
Tagir Valeevandintellij-monorepo-bot 85f72bfc0f testResolveDiamondBeforeOuterCall (fails if new expression type is requested before highlighting)
GitOrigin-RevId: b01abb3fbbebe28e3115aa109005851b62a02e7b
2019-11-15 08:03:12 +00:00
Artemiy Sartakovandintellij-monorepo-bot 7e0b374d13 OptionalToIfInspection: preserve comments
GitOrigin-RevId: 7e97d9997d6f0eaca40e1e9cd720dc27e7ca687a
2019-11-12 10:34:02 +00:00
Anna Kozlovaandintellij-monorepo-bot eb79bfc3d3 java inference: ease assertion for lambdas in non-generic calls (EA-143883)
GitOrigin-RevId: 0e5ff0aa54375926c8ea5e2140458457250034dc
2019-11-08 21:03:13 +00:00
Anna Kozlovaandintellij-monorepo-bot 41dd307bc0 incompatibility types tooltip: show varargs parameter once (IDEA-226535)
GitOrigin-RevId: 489681a2196ba79d39964ca0f8c3e6a24b3cff80
2019-11-08 20:04:06 +00:00
Anna Kozlovaandintellij-monorepo-bot f45758ac79 redundant cast: support switch labels syntax (IDEA-226175)
GitOrigin-RevId: afdf87f8692f610ee87b9892c61f9ab97986bab8
2019-11-08 09:06:35 +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 a815811dba IDEA-226296 Forward compatibility inspection
GitOrigin-RevId: eadb0e5ec707311f802879dd347fa7a72a67d0af
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