Commit Graph

7442 Commits

Author SHA1 Message Date
Anna.Kozlova
cc72bd0319 inference: restore probably partial raw inference as this way expected raw types are preserved and Objects won't be inferred in place where raw types were expected 2016-03-30 12:15:25 +02:00
Bas Leijdekkers
5210f8dbe5 IDEA-153614 (Flip ',' (comma) generates invalid code) 2016-03-30 11:43:52 +02:00
Bas Leijdekkers
4d0e044c2f allow to move left/right more java constructs 2016-03-30 11:43:51 +02:00
Anna.Kozlova
bb5a0f66e9 inline: don't flatten multi dimensional array in varargs calls (IDEA-153700) 2016-03-29 21:17:55 +02:00
Anna.Kozlova
d5613fae7f testdata for IDEA-153632 2016-03-29 21:17:55 +02:00
Anna.Kozlova
f139c4cef4 new inference: check provided lower bounds on type parameters, in case of fresh variables they declare the type hierarchy and otherwise constrains won't agree (IDEA-153642) 2016-03-29 16:51:50 +02:00
Dmitry Batkovich
fa03ad1046 inspection tool window: node exclusion restoration on tree regrouping fixed 2016-03-29 17:17:14 +03:00
Yaroslav Lepenkin
55e53ea631 Keep line breaks works for Polyadic expressions (IDEA-153329) 2016-03-28 14:18:19 +03:00
Dmitry Batkovich
6f49be7fcc wrap with optional IDEA-122553 2016-03-25 13:50:03 +03:00
Anna Kozlova
532a22e4ed testdata fixed 2016-03-24 21:28:00 +01:00
Bas Leijdekkers
0386b99e96 IDEA-153187 (Bogus "Unguarded field access" inspection for inner class) 2016-03-24 19:02:12 +01:00
Anna.Kozlova
7712f6e443 proceed static factories instead of constructors to calculate expected types when diamonds are used (IDEA-153520) 2016-03-24 18:14:17 +01:00
Yaroslav Lepenkin
f98a2a050e Place brace on next line works for lambdas (IDEA-140199) 2016-03-24 19:06:59 +03:00
Anna.Kozlova
ca2921eb6e inline local: don't check assignability before decoding (IDEA-152883) 2016-03-24 15:58:41 +01:00
Anna.Kozlova
0e808d9aff highlight invalid method call: search for most probable argument-cause (IDEA-151202) 2016-03-24 15:58:41 +01:00
Bas Leijdekkers
af3365744c IDEA-38591 (Can't use "Create Local Var from instanceof" intention on multiple 'instanceof' with &&) 2016-03-24 15:36:14 +01:00
Yaroslav Lepenkin
d3657bc657 Highlight implicit parameters in lambdas as in anonymous classes (IDEA-152652) 2016-03-24 16:09:23 +03:00
peter
419770e30d IDEA-153437 Do not suggest to loop over the loop variable (and don't duplicate "new") 2016-03-24 11:54:46 +01:00
peter
0a9d2963ae don't lose precision during constant comparison in dfa (IDEA-153532) 2016-03-24 11:54:45 +01:00
Anna.Kozlova
bf5cd076c1 new inference: avoid inferring partly raw types (in case of unchecked conversion resolve to eq/low bound or null if only upper is present) as these types won't be treated as wildcard parameterized ever (IDEA-150167) 2016-03-24 11:48:06 +01:00
Anna.Kozlova
0d30474e77 unguarded field access: support sync expressions (IDEA-153399) 2016-03-23 17:20:32 +01:00
Anna.Kozlova
a3b5e864db convert field to local: reject when field is used from javadoc (IDEA-153332) 2016-03-23 17:20:32 +01:00
Anna.Kozlova
9e8666f159 bind params to fields: accept field assignments if not exactly the parameter reference was assigned (IDEA-120320) 2016-03-23 17:20:32 +01:00
Anna.Kozlova
d935cfd941 change error message (IDEA-153156) 2016-03-22 19:37:27 +01:00
Anna.Kozlova
0d78fb9f8d extract class: normalize fields declarations (IDEA-153457) 2016-03-22 19:22:42 +01:00
Anna.Kozlova
b1a0d687df old inference: include type parameter's bounds in result as intersection if inference from parent type was started (IDEA-153411) 2016-03-22 19:22:42 +01:00
Anna.Kozlova
f6faa42d85 anonym -> lambda: reject refs to the next static from static field initializer 2016-03-21 21:11:36 +01:00
Anna.Kozlova
6fc9953a82 show error if uninitialized field is referenced from lambda inside inner/anonymous class in another field initializer; disable anonymous -> lambda for such places 2016-03-21 21:11:36 +01:00
Anna.Kozlova
c5c96608b7 most specific check for proper functional types fixed 2016-03-21 19:35:58 +01:00
Anna.Kozlova
a3aca75748 overload resolution: testdata for java 8 bug 2016-03-21 19:35:58 +01:00
Anna.Kozlova
348b89190c suspicious method calls: don't ignore array types, captures, etc (IDEA-153097) 2016-03-21 14:14:26 +01:00
Anna.Kozlova
f14159a852 disable replace with collect for raw collection substitutors (IDEA-153325) 2016-03-21 14:14:26 +01:00
Anna.Kozlova
ab7f16e4b9 testdata for IDEA-153284 2016-03-21 14:14:26 +01:00
Anna.Kozlova
3a700a9bc9 process override equivalent methods when check for functional interface target (IDEA-153324) 2016-03-21 14:14:26 +01:00
Bas Leijdekkers
89cd25f7bc improve "Unknown @GuardedBy field" inspection 2016-03-19 10:19:53 +01:00
Anna.Kozlova
81a6342d17 anonymous -> method ref: collapse receiver method references to raw receiver (IDEA-153261) 2016-03-18 20:49:43 +01:00
Anna.Kozlova
6daac099e6 anonymous -> lambda: treat class initializers as fields when forward references are check (IDEA-153254) 2016-03-18 20:49:43 +01:00
Anna.Kozlova
4b4fe678f0 make first java 8 modules inherit language level from project default 2016-03-18 17:26:43 +01:00
Anna.Kozlova
ae59643c87 testdata for IDEA-151214 2016-03-18 15:50:22 +01:00
Anna.Kozlova
395c55df75 testdata for IDEA-150754 2016-03-18 15:50:22 +01:00
Anna.Kozlova
034012ae4e overload resolution: clear inference errors from nested calls when top level expression is abadoned as non-applicable (IDEA-150718; IDEA-153222) 2016-03-18 15:50:22 +01:00
Anna.Kozlova
53d3aa770c inference: don't include constraints to resolve if input bounds have proper instantiation but depends on the output of another constraints (IDEA-153164) 2016-03-17 21:25:32 +01:00
Anna.Kozlova
4ad5c2006c introduce functional parameter from substring
EA-80674 - AIOOBE: IntroduceParameterHandler.introduceStrategy
2016-03-17 21:25:32 +01:00
Anna.Kozlova
ec5245ed00 redundant cast: recapture wildcards for non-physical elements (IDEA-153166) 2016-03-17 18:04:01 +01:00
Anna.Kozlova
1545f58d8d make type denotable: ensure that array type is not created over wildcard 2016-03-17 18:04:01 +01:00
Anna.Kozlova
cdc7349caa unchecked warnings: don't warn about generics array creation if arg of array type is found (IDEA-153122) 2016-03-17 18:04:01 +01:00
Roman Shevchenko
e4a0f4548b [java] allows up to 5 unused variables per scope 2016-03-16 19:02:04 +01:00
Roman Shevchenko
fac9f4ae58 Cleanup (warnings; typos) 2016-03-16 18:57:54 +01:00
Anna.Kozlova
d0011b3acb accessibility checks: stop at library level 2016-03-16 15:35:39 +01:00
Anna.Kozlova
15d6e64813 lambda -> method ref: compare denotable types (IDEA-153054) 2016-03-16 15:35:39 +01:00