Anna Kozlova
18c575a41d
folded functional expression: compare unprocessed types (IDEA-194333)
2018-06-21 13:50:18 +03:00
Tagir Valeev
dde103758e
IDEA-194142 IDEA should recognize min/max usage with reversed order
2018-06-21 17:02:27 +07:00
Roman.Ivanov
19bfb9be67
SortContentAction: prevent sorting when enum entries have dependencies
2018-06-21 11:55:22 +07:00
Anna Kozlova
1a5768f1cd
surround with try/catch: replace var with explicit type (IDEA-191069)
...
when declaration has to be split
2018-06-20 14:49:51 +03:00
Anna Kozlova
017e3e4781
fix testdata
2018-06-20 09:56:55 +03:00
Anna Kozlova
681bfe7ba6
enable explicit type -> var for diamonds (IDEA-188771)
...
expand diamonds and spare on explicit type declaration
2018-06-19 15:50:48 +03:00
Roman Shevchenko
4f048d886a
Cleanup (test data formatting)
2018-06-19 15:09:54 +03:00
Anna Kozlova
6a85ff1fb5
resolve conflicting names when rename to 'ignored' (IDEA-184092)
2018-06-19 15:00:38 +03:00
Anna Kozlova
201de8dd01
redundant cast: trim too long messages (IDEA-182666)
2018-06-19 13:18:27 +03:00
Tagir Valeev
ecb2f6c1cf
Add "Replace 'compute' with 'computeIfPresent'" fix
...
Helps for IDEA-194058 False-positive warning of producing NullPointerException for Map.compute
2018-06-19 15:07:31 +07:00
Anna Kozlova
fad349d791
lvti: don't resolve method calls to detect self-referenced (IDEA-194104)
2018-06-19 08:18:04 +03:00
Anna Kozlova
876dd36dd9
use boxed type instead of expected primitive when NULL type is calculated
...
this allows int -> Integer signature changes when null is passed where primitive is expected (IDEA-164942)
2018-06-18 19:48:12 +03:00
Anna Kozlova
f6853fecd7
disable wrap with Integer.parseInt for null type (IDEA-164942)
2018-06-18 19:48:11 +03:00
Anna Kozlova
6adc33ee16
make create local from fix available on full range (IDEA-141875)
2018-06-18 17:05:41 +03:00
Anna Kozlova
c647e7e306
testdata for IDEA-194093
2018-06-18 17:05:41 +03:00
Tagir Valeev
048abf37d7
DivideByZeroInspection: add fix for 0.0/0.0 (replace with NaN)
...
Fixes IDEA-117884 Inspection "Divide by zero": Recognize 0.0/0.0
2018-06-18 16:36:10 +07:00
Roman Shevchenko
0e8c2770a0
Cleanup (test data formatting)
2018-06-15 12:21:39 +03:00
Roman Shevchenko
dad46c21f1
[java] returns type parameter name to "missing tag" warning
2018-06-15 12:20:17 +03:00
Anna Kozlova
b5a41bc285
highlight sibling continue/break (IDEA-117109)
2018-06-15 12:08:04 +03:00
Anna Kozlova
fb62ac70cd
fix testdata
2018-06-14 20:35:33 +03:00
Anna Kozlova
90489c7c58
add javadoc for type parameter: insert brackets (IDEA-193915)
2018-06-14 17:54:17 +03:00
Anna Kozlova
1e7e741009
keep annotations for explicit to var fixes (IDEA-193876)
2018-06-14 12:10:52 +03:00
Tagir Valeev
79ed1b2dc3
shortenClassReferences: dequalify references which are statically imported
2018-06-14 10:08:16 +07:00
Anna Kozlova
dc43909e2c
ensure no inference from not inferred var (IDEA-193828)
2018-06-13 21:00:17 +03:00
Tagir Valeev
f4839c89ea
BaseStreamApiMigration: when deleting the initializer replace type with explicit if possible
...
Fixes IDEA-193618 Invalid code generated after "Can be replaced with 'collect' call"
2018-06-13 11:14:54 +07:00
Roman Shevchenko
eabcde2868
[java] 'var' arrays highlighting (IDEA-193514)
2018-06-08 17:28:55 +03:00
Tagir Valeev
62792959f0
More tests for this handling in javac
2018-06-08 13:27:58 +07:00
Pavel Dolgov
cac4bf41ff
Java: Don't offer "Invert If Condition" if the code structure is broken (IDEA-177291)
2018-06-07 15:22:27 +03:00
Tagir Valeev
51af524343
LocalsOrMyInstanceFieldsControlFlowPolicy: allow parentheses
...
See also IDEA-156926, JDK-8156180
2018-06-07 17:55:13 +07:00
Tagir Valeev
d90e0b79e5
LocalsOrMyInstanceFieldsControlFlowPolicy#isLocalOrMyInstanceReference extracted
...
Fixes parentheses handling like (this).x. Review ID: IDEA-CR-33345
2018-06-07 16:11:00 +07:00
Tagir Valeev
698afa3b24
LocalsOrMyInstanceFieldsControlFlowPolicy: disallow qualified this
...
According to JLS Chapter 16 qualified "this" is not considered as reference to field in definite assignment analysis
Fixes IDEA-193386 Good code is red: Variable may not have been initialized
2018-06-07 11:28:07 +07:00
Rustam Vishnyakov
e9d34426d0
Test data fix
2018-06-06 15:44:16 +03:00
Anna Kozlova
3cc9cdf88b
highlight continued/exiting statements on continue/break selection
...
IDEA-123328
2018-06-06 09:43:10 +03:00
Anna Kozlova
c43b6f20de
completion: check parent overloads for constructor calls as well (IDEA-187354)
2018-06-05 17:13:42 +03:00
Tagir Valeev
ec483ef976
IDEA-193288 Inspection to detect Xyz.class.isInstance(foo) and Xyz.class.cast(foo)
2018-06-05 12:21:58 +07:00
Roman.Ivanov
ae37e14386
fix foreach formatting in tests
2018-06-05 11:58:44 +07:00
Roman.Ivanov
5858ba478c
fix tests for foreach formatting
2018-06-05 11:31:17 +07:00
peter
cb981a0ef5
java completion: suggest Objects::nonNull where applicable (IDEA-192789)
2018-06-04 18:18:35 +02:00
Anna Kozlova
ae8064fe15
split declaration: insert missed semicolon (IDEA-192958)
2018-06-04 18:44:40 +03:00
Anna Kozlova
0d0354fdab
add cast: don't unbox for null types (IDEA-193174)
2018-06-04 18:44:40 +03:00
peter
1da11d0a35
java completion: enable package suggestions inside type arguments (IDEA-193049)
2018-06-04 15:45:38 +02:00
Anna Kozlova
1ef91b8eb4
split declaration: fix comments in context
2018-06-04 15:27:40 +03:00
Anna Kozlova
84976a2511
change test data
2018-06-04 12:36:29 +03:00
Anna Kozlova
31fd8cfe08
create from usage: don't ignore types if no expected methods detected
...
IDEA-193066 check expected type as well by another expression
2018-06-01 20:04:05 +03:00
peter
b2d683fcd4
IDEA-192382 Override unused imports when adding class with same name
2018-06-01 13:57:35 +02:00
Roman.Ivanov
7db02bc177
CreateTypeParameterFromUsageFix: ignore reference expr: IDEA-193060
2018-06-01 18:09:17 +07:00
Anna Kozlova
db4d62e485
change test data to be more realistic
2018-06-01 11:15:29 +03:00
Anna Kozlova
2c5117ba22
completion: presume fresh variables have always low bounds during completion
...
IDEA-190041
2018-06-01 11:12:35 +03:00
Tagir Valeev
6a0d8cba1a
ChainCallJoinLinesHandler: disable when parent is not the same
2018-06-01 10:46:14 +07:00
Pavel Dolgov
10909be55a
Java: Fixed "Unwrap else branch" - create consistent PSI (IDEA-192543)
2018-05-31 12:41:02 +03:00