Anna.Kozlova
2a8a14a528
convert field to local: preserve comments
2018-08-14 15:06:25 +02:00
Anna.Kozlova
ca8bf138f8
infer nullity: don't drill inside classes on expressions processing (IDEA-197262)
2018-08-14 13:36:43 +02:00
Alexey Kudravtsev
34f65ccec8
javadoc references must resolve despite current resolve scope (Too often javadoc for interface references implementation which should not show up red)
2018-08-10 15:44:39 +03:00
Anna.Kozlova
779291d906
ensure fresh variables for the same context don't conflict by names (IDEA-196642)
2018-08-06 19:35:12 +02:00
peter
7d5673a443
java completion: don't overwrite whole anonymous class
...
search for reference at `BaseClassRe|f`, not `BaseClassRef() { ... }.call()`
2018-08-01 16:05:08 -07:00
Tagir Valeev
b3325f5116
Preserve code block when variable from lambda body conflicts with later declaration
...
Fixes IDEA-196540 TrivialFunctionalExpressionUsageInspection produces code with variable redefinitions
2018-08-01 20:52:34 +07:00
Anna.Kozlova
7001ac6394
split if: ensure condition operands comparison stops at first non-equivalent sub condition (IDEA-196560)
2018-08-01 11:52:03 +02:00
Anna.Kozlova
fbb178fb85
inference: check intersection type for raw conversion separately (IDEA-196523)
2018-08-01 11:52:03 +02:00
peter
1891247f9a
IDEA-195936 "true"/"false" keywords should have priority in completion for boolean parameters inside "if" condition
2018-07-30 06:38:53 -07:00
Anna.Kozlova
f73b89ad6a
add static import: take into account packages which should be always imported on demand (IDEA-127947)
2018-07-30 12:34:57 +02:00
Tagir Valeev
229f9206e8
FoldExpressionIntoStream: disable for non-string separator and automatically convert char
...
CharToStringIntention#stringForCharLiteral moved to PsiLiteralUtil
Fixes IDEA-195621 "Expression can be folded into Stream chain" produces red code when delimiter is char type
2018-07-29 13:41:30 +07:00
Tagir Valeev
0ee4ea1fad
IDEA-195573 groupingBy test
2018-07-29 09:25:38 +07:00
Tagir Valeev
9d96fb9a63
IDEA-195573 Support collectingAndThen in Stream-to-loop (for now only if downstream is collection-based)
2018-07-29 09:14:48 +07:00
peter
93a28c65ee
IDEA-168048 Constructor parameters are generated with @Nonnull annotations even though the class is annotated with @ParametersAreNonnullByDefault
2018-07-28 06:42:08 -04:00
Anna.Kozlova
84e2da2eeb
add single import: ensure current ref to import is taken into account when check the limit (IDEA-127949)
2018-07-27 18:48:57 +02:00
Tagir Valeev
a6643bdab2
StreamToLoopInspection: handle labeled expression statement (found by property testing)
2018-07-27 13:09:38 +07:00
Anna.Kozlova
1479d66bc6
disable wrap with fixes in switch cases where only constants are accepted (IDEA-196151)
2018-07-26 16:23:43 +02:00
Anna.Kozlova
7cd6f23717
disable on-demand static import inside import statements (IDEA-196022)
2018-07-26 13:50:13 +02:00
Tagir Valeev
ab3c5b7e5a
OptionalUtil#getMapTypeArgument: support PsiEmptyExpressionImpl input
...
Fixes EA-125157 - IOE: PsiJavaParserFacadeImpl.createExpressionFromText
2018-07-26 17:41:49 +07:00
Roman.Ivanov
16e9fb30d3
SortContentAction: add parens handling for enum expressions
2018-07-26 14:49:59 +07:00
peter
b52aba08d7
CreateSwitchIntention shouldn't throw on malformed strings
2018-07-25 09:02:54 +02:00
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