Anna.Kozlova
d5c1446732
enable var type change when method is called on qualifier (IDEA-190067)
2018-04-23 17:01:52 +02:00
Tagir Valeev
53094fd2d2
IDEA-190727 Replace instanceof with null-check could automatically eliminate double negation
2018-04-22 17:07:04 +07:00
Roman.Ivanov
32847d75a5
VariableAccessFromInnerClassJava10: fix review issues: IDEA-CR-31797
2018-04-20 10:43:23 +07:00
Anna.Kozlova
300ba0e9bb
cleanup anonymous type when asked for variable type
...
check that effective cast type will help (IDEA-190473)
2018-04-19 13:23:22 +02:00
Tagir Valeev
c76d9aba62
StreamToLoopInspection: support Map.forEach()
...
Fixes IDEA-190440 Convert usage of java.util.Map.forEach() to for (... entrySet()) loop
2018-04-19 12:12:40 +07:00
Tagir Valeev
91b269f9fb
CountingLoop: support decreasing loops
...
Fixes IDEA-190412 Unroll loop action: support decreasing loops
2018-04-17 17:48:00 +07:00
Tagir Valeev
a1a4663b73
CollectMigration: support toUnmodifiableMap
...
Fixes IDEA-187213 Stream API migration: support Java 10 toUnmodifiableList/Set/Map collections
2018-04-17 15:06:35 +07:00
Anna.Kozlova
48dcb9fe54
split declaration: PIEAE (IDEA-190299)
2018-04-16 16:45:23 +02:00
Roman.Ivanov
3f6f9467c1
add fix to create field in anonymous class for lambdas: IDEA-189928
2018-04-16 12:47:03 +07:00
Tagir Valeev
165e2a527f
DFA: support of Class.isInstance, isAssignableFrom and class literal tracking
...
Fixes IDEA-189865 Support class.isAssignableFrom and class.isInstance in DFA
2018-04-15 13:21:49 +07:00
Tagir Valeev
d31f5f410d
ExtractIfCondition: fix testdata (extra comment)
2018-04-13 10:39:50 +07:00
Roman.Ivanov
5e0d5a8c16
AddExceptionToExistingCatch: disable fix for local classes: IDEA-189828
2018-04-10 15:49:24 +07:00
Roman.Ivanov
db891c3f24
SortContentAction: place \n correctly if comment inside node IDEA-189822
2018-04-10 15:13:08 +07:00
Roman.Ivanov
c7f0ee1fb9
add fix to create type parameter from usage: IDEA-189833
2018-04-09 18:18:03 +07:00
Anna.Kozlova
f86e0a31ea
disable exceptional fixes for local classes (IDEA-189596)
2018-04-09 11:38:11 +02:00
Tagir Valeev
83ebaa7f64
Extract common conjunct from if-else chain in ExtractIfConditionAction
...
Fixes IDEA-179499 New inspection: Should break out common conjunct from "if / else if"
2018-04-07 09:08:57 +03:00
Roman.Ivanov
b973d42f1c
AddExceptionToExistingCatchFix: hide fix in catch or finally IDEA-189654
2018-04-06 12:26:55 +07:00
Anna.Kozlova
34ef66e51c
add exception to existing catch: ensure qNames are adjusted
2018-03-29 16:11:08 +02:00
Roman.Ivanov
b938da3020
AddExceptionToExistingCatch: more concrete message, scroll and highlight
2018-03-29 11:24:55 +07:00
Roman.Ivanov
21ddec7d1f
change AddExceptionToExistingCatch to be quickfix
2018-03-29 11:24:55 +07:00
Roman.Ivanov
5aa1899843
Create intention to add uncaught exception to existing catch clause
2018-03-29 11:24:55 +07:00
Anna.Kozlova
287b88b975
fix getClass() type in non-physical context
...
IDEA-188897
2018-03-27 17:15:52 +02:00
Tagir Valeev
46f0bf7f3a
ObjectEqualsNull removed (superseded with DataFlowInspection)
2018-03-27 16:16:50 +07:00
Tagir Valeev
f61a13bfcd
EqualityCheck extracted and used in various inspections, other fixes
...
EqualsCalledOnEnumValueFix replaced with EqualsToEqualityFix which does the same
2018-03-27 15:01:56 +07:00
Tagir Valeev
7c193ef32c
IDEA-188880 Make interface method 'default' fix: suppress for methods overriding Object methods
2018-03-27 11:44:59 +07:00
Anna.Kozlova
232b29888a
add type cast intention for poly expressions (IDEA-188731)
...
inference errors on poly expressions are not propagated to the expected type (variable declaration, return statement, etc) like for standalone expressions: dedicated intentions should be registered
2018-03-23 15:06:39 +01:00
Anna.Kozlova
3ae37a2925
disable cast suggestion for incompatible return type (IDEA-186479)
2018-03-22 10:41:42 +01:00
Anna.Kozlova
07060b5fb3
fix optimize imports on the fly settings path
2018-03-20 17:00:29 +01:00
Roman.Ivanov
4b0eec673a
SortContentAction: support annotation array sorting
2018-03-19 12:58:12 +07:00
Roman.Ivanov
61a1b2eba6
SortContentAction: support enum sorting
2018-03-19 12:58:11 +07:00
Roman.Ivanov
4e34325187
SortContentAction: preserve comments in corner case
2018-03-19 12:58:11 +07:00
Dmitry Avdeev
ff7343e295
OrderEntryFix: filter suggestions by qualified name
2018-03-16 17:40:59 +03:00
Anna.Kozlova
6a9bc6782d
ensure class added to the throws list is visible outside of method
...
IDEA-187595
2018-03-14 17:39:04 +01:00
Anna.Kozlova
d2bfe3d14b
ensure name when retrieving constructors from a class (IDEA-188068)
2018-03-13 10:35:45 +01:00
Tagir Valeev
2e6232e029
StreamApiMigration tests reorganized
2018-03-13 11:21:23 +07:00
Tagir Valeev
b2d5f75a92
StreamApiMigration: support Java10 toUnmodifiableList/Set (part of IDEA-187213)
2018-03-13 11:21:22 +07:00
Daniil Ovchinnikov
47bedfb488
[jvm-lang] java: return if no method is found after reformat IDEA-188113
2018-03-12 21:40:30 +03:00
Anna.Kozlova
117f3f1d2f
ensure tailing comments doesn't break statement in the middle (IDEA-188072)
2018-03-12 18:34:26 +01:00
Tagir Valeev
c1f2c5c380
StreamToLoop: special handling of max().orElse(MIN_VALUE), etc.
2018-03-12 15:24:01 +07:00
Tagir Valeev
ebbdbbe432
StreamToLoop: special handling of skip(1)
2018-03-12 15:24:00 +07:00
Tagir Valeev
552f6fd49e
IDEA-188021 "Move assignment to field declaration" leaves comment in class initializer
2018-03-12 10:18:09 +07:00
Anna.Kozlova
acfb22157b
remove redundant type args: get rid of 2 different fixes
2018-03-09 18:44:26 +01:00
Anna.Kozlova
e3f42bdb9b
extract PsiPrecedenceUtil as read-only part of ParenthesisUtils
...
leave methods to ensure compatibility, to be inlined and deprecated in separate commit (IDEA-CR-30329)
2018-03-09 16:38:07 +01:00
Tagir Valeev
a0923d48b8
MoveFieldAssignmentToInitializerFix: keep comments when removing empty initializer
...
Fixes IDEA-187524 "Move assignment to field declaration" loses comment on class initializer
2018-03-09 19:45:31 +07:00
Tagir Valeev
350eba5000
Optional compared with null: do not warn when subsequent isPresent check is found
...
IDEA-187578 Inspection to detect when Optional is compared with null
2018-03-09 19:30:59 +07:00
Tagir Valeev
a24ad7b268
OptionalAssignedToNull: added optional (sic!) warning on optional == null comparison
...
Fixes IDEA-187578 Inspection to detect when Optional is compared with null
2018-03-07 16:20:10 +07:00
Anna.Kozlova
9bdd5f11e3
respect precedence for div as production argument (IDEA-187205)
2018-03-07 09:18:32 +01:00
Anna Kozlova
b69f886265
redundant type arguments for non-generic methods & method references
...
IDEA-187548
2018-03-07 08:02:42 +01:00
Tagir Valeev
2c4af2781d
Inspection: Expression can be folded into Stream chain (IDEA-187123)
2018-03-05 16:35:35 +07:00
Tagir Valeev
43b86a988e
CodeEditUtil#removeChildren: fixed nextLeaf determination
...
Before when removing more than one element, nextLeaf was invalid as well. The invalidation check below did not work as parent might still exist (element might be relinked to dummy file)
Fixes IDEA-187531 "Add on demand static import" with intervening comment and an empty line breaks code
2018-03-03 15:47:21 +07:00