Anna.Kozlova
16f0977481
diamonds: simulate resolved constructor with generated static factory (IDEA-195813)
2018-07-23 19:20:55 +02:00
Roman.Ivanov
8f1873cbcf
CreateTypeParameter: don't suggest fix inside type parameter IDEA-195832
2018-07-23 10:58:21 +07:00
Roman Shevchenko
c1340c48ad
[java] upgrade module path: resolve (IDEA-189693)
...
Uses relative location of files on module dependency list to disambiguate upgradeable modules.
2018-07-19 14:51:58 +02:00
Roman Shevchenko
31b5699978
[java] removes incorrect accessibility error (IDEA-187250)
...
... when IDEA thought that a class is in an inaccessible JDK module, while in fact there is an upgrade on the classpath.
2018-07-19 10:36:12 +02:00
Roman Shevchenko
547f2b3967
[java] skips reference check for array annotations (IDEA-195612)
2018-07-16 18:13:38 +02:00
Anna.Kozlova
23e9412db6
non reifiable types: erase to avoid illegal generics array creation (IDEA-195562)
2018-07-16 13:56:54 +02:00
Anna.Kozlova
378ea0e334
don't fail to attach fixes on invalid code
...
EA-122929 - IOE: PsiJavaParserFacadeImpl.createExpressionFromText
2018-07-16 10:43:52 +02:00
Tagir Valeev
867968eea8
DeclarationJoinLinesHandler: more careful precedence fix (IDEA-CR-34859)
2018-07-12 17:20:20 +07:00
Tagir Valeev
fa71413378
Revert "DeclarationJoinLinesHandler: respect precedence for both initializer and right-hand operand"
...
This reverts commit 7730b97e (IDEA-CR-34859)
2018-07-12 17:20:20 +07:00
Anna.Kozlova
7f79852971
disable Override method intention for constructor
2018-07-12 11:35:33 +02:00
Tagir Valeev
7730b97ee4
DeclarationJoinLinesHandler: respect precedence for both initializer and right-hand operand
...
Fixes IDEA-195416 Join lines over arithmetic operations should preserve order
Also StreamApiMigrationInspection#getOperationSign moved to TypeConversionUtil#getBinaryOperationText and reused
2018-07-12 11:26:49 +07:00
Roman.Ivanov
7b618f5a58
SortContentAction: fix another comment handling problem
2018-07-11 19:08:01 +07:00
Roman Shevchenko
378bd98996
[java] improves mandatory module path detection; more package accessibility tests
2018-07-11 13:19:13 +02:00
Anna.Kozlova
ae3afdbaf8
switch -> if: fix comments line breaks (IDEA-195383)
2018-07-11 13:02:10 +02:00
Tagir Valeev
d3ff2c7178
ChangeStringLiteralToCharInMethodCallFix: support parenthesized args
2018-07-11 14:43:46 +07:00
Tagir Valeev
625def0299
FoldExpressionIntoStream, StreamApiMigration: EquivalenceChecker used
2018-07-11 14:43:44 +07:00
Tagir Valeev
4b66e1de3d
LambdaCanBeMethodReferenceInspection: support parentheses like s -> (s) instanceof Xyz or s -> (s) != null, etc.
2018-07-11 14:43:43 +07:00
Tagir Valeev
0184274f8c
ExtractChainedMapAction: disable on non-first variable; enable for parenthesized lambda
2018-07-11 14:43:43 +07:00
Tagir Valeev
3fad9a22f4
PsiJavaCodeReferenceElementImpl: preserve tokens (comments/whitespace) between name element and parameter list
2018-07-11 14:43:42 +07:00
Anna.Kozlova
d7e2efc0c0
invert if: fix parent ifStatement (IDEA-191327)
2018-07-10 16:49:02 +02:00
Roman.Ivanov
9265b54df5
CreateTypeParameterFromUsage: do not suggest fix when reference is part of class literal: IDEA-195266
2018-07-10 14:52:17 +07:00
Tagir Valeev
e3b4dbaac1
ReplaceCastWithVariableAction: support parentheses
2018-07-10 14:13:47 +07:00
Tagir Valeev
b44aed3ba0
UseBulkOperationInspection: deparenthesize qualifier
2018-07-10 14:13:45 +07:00
Tagir Valeev
105bd77c57
ComparatorCombinatorsInspection: support parentheses around lambda
2018-07-10 14:13:43 +07:00
Tagir Valeev
ec98df958b
StreamApiMigration: parentheses in BufferedReader.lines() scenario supported
2018-07-10 14:13:38 +07:00
Tagir Valeev
ff72facb5c
AddTypeCastFix: disallow void type
2018-07-10 14:13:37 +07:00
Anna.Kozlova
449b375178
equals/hashCode generation: simplify Objects.equals when fields are notNull (IDEA-194650)
2018-07-09 19:46:44 +02:00
Dmitry Batkovich
2a035a9a12
add method qualifier fix should be not available for unresolved qualified method call
2018-07-09 13:39:37 +03:00
Tagir Valeev
99387de7f5
IDEA-195069 Quick Fix: "Transform to mutable collection" in response to "Immutable object is modified" inspection
2018-07-09 16:23:35 +07:00
Roman.Ivanov
9f10da57c4
ChangeUIDAction: do not show intention in presence of initializers: IDEA-195234
2018-07-09 15:24:39 +07:00
Tagir Valeev
9ba38bc486
StreamApiMigrationInspection: skip parentheses in loop bound
2018-07-09 12:31:45 +07:00
Tagir Valeev
be51bc94e1
RedundantCastUtil: some fixes for doubly parenthesized qualifiers
2018-07-09 12:31:42 +07:00
Anna.Kozlova
a06125f854
add type cast as fix for unresolved calls (IDEA-185569)
2018-07-06 18:12:07 +02:00
Tagir Valeev
ee605ddc46
AssignFieldFromParameterAction: check whether final field is already initialized
2018-07-06 17:52:50 +07:00
Tagir Valeev
c08578a8b8
AnonymousCanBeLambdaInspection: support parenthesized anonymous class
2018-07-06 16:30:52 +07:00
Tagir Valeev
abc5d98a07
InlineStreamMapAction: testdata fixed
2018-07-06 15:13:14 +07:00
Tagir Valeev
df28f9a4c0
RedundantExplicitCloseInspection: support parentheses in close(); fixed support of resource expression; check field qualifiers
2018-07-06 15:13:13 +07:00
Tagir Valeev
b0cc9d68d4
InlineStreamMapAction: support parenthesized chain
2018-07-06 15:13:12 +07:00
Tagir Valeev
5639829e97
LambdaCanBeMethodReferenceInspection: support parentheses around whole lambda body
2018-07-06 15:13:11 +07:00
Tagir Valeev
fe6ebf0a01
ConvertCompareToToEqualsIntention: support parentheses
2018-07-06 13:58:56 +07:00
Tagir Valeev
1325835ce7
StreamToLoop: support parenthesized collectors
2018-07-06 13:58:52 +07:00
Tagir Valeev
d327e1acdc
FoldExpressionIntoStreamInspection: deparenthesize when testing whether it's too simple case
2018-07-06 13:58:48 +07:00
Tagir Valeev
cf64d92692
AddJavadocIntention: disable at field initializers
...
Add JavaDoc was available at initializer in some rare cases, e.g. "String foo = b<caret>ar;" (initializer is a simple reference), which was inconsistent and confusing (will the action add JavaDoc to "foo" or to "bar"?
2018-07-06 13:58:47 +07:00
Tagir Valeev
c3778b8706
CreateLocalVarFromInstanceofAction: use EquivalenceChecker which is more robust (in particular against parentheses)
2018-07-06 13:58:44 +07:00
Tagir Valeev
79ab032b1b
ReturnSeparatedFromComputationInspection: support parentheses
2018-07-06 13:58:44 +07:00
Tagir Valeev
d516456163
CountingLoop: support parenthesized condition
2018-07-06 13:58:43 +07:00
Tagir Valeev
2217968c28
StreamToLoop: support functions in parentheses
2018-07-06 13:58:36 +07:00
Roman.Ivanov
b9b71c6717
SortContentAction: limit intention in enums only to declaration of enum
2018-07-06 11:30:29 +07:00
Roman.Ivanov
0576cb35e5
SortContentAction: allow not only literal expressions to sort
2018-07-06 11:30:28 +07:00
Anna.Kozlova
d612b2c65b
create from usage: ensure that refs for methods/locals are not mixed (IDEA-195066)
2018-07-05 18:13:11 +02:00