Anna Kozlova
f60676d110
default Optional.empty for Optional type (IDEA-174268)
2017-06-14 19:27:02 +03:00
Anna Kozlova
3dff91600a
redundant code block: compare same overload resolution (IDEA-174288)
...
instead of trying with cast afterwards, don't suggest to remove the block at the first place
2017-06-14 11:51:52 +03:00
Tagir Valeev
fb6965b6b9
ExtractSideEffectsFix -> DeleteSideEffectsAwareFix; i18n
...
Now intention availability logic is moved from HighlightUtil to DeleteSideEffectsAwareFix
Review: IDEA-CR-21623
2017-06-08 12:15:20 +07:00
Tagir Valeev
a5dcf8841f
ComparatorResultComparisonInspection: support >/>=/</<= checks
...
Additional fix for IDEA-173177. Now conditions like "a.compareTo(b) > 1" are warned as well.
2017-06-08 10:14:34 +07:00
Tagir Valeev
535c113dba
IDEA-172877 Provide a quick-fix on 'Not a statement' error message
2017-06-07 15:27:49 +07:00
Anna Kozlova
02c718aae8
replace assignment with comparison in condition exps (IDEA-173860)
2017-06-06 19:07:58 +03:00
Anna Kozlova
6487bb6913
disable assign parameter to final field (IDEA-173815)
...
for constructors with chaining calls, for non-constructors
2017-06-06 14:54:06 +03:00
Tagir Valeev
dbcddf5a4a
BoxForComparisonInspection enhanced -> UseCompareMethodInspection
...
Suggests to use Integer.compare(), etc. instead if ternary operator or if chain. Fixes IDEA-173766.
2017-06-06 17:20:08 +07:00
Anna Kozlova
c578a4ede7
disable assign param to field (IDEA-173747; IDEA-173689)
...
inapplicable types or already assigned
2017-06-05 20:14:45 +03:00
Anna Kozlova
6423538939
surround with array fix: disable for non-denotable types (IDEA-173797)
2017-06-05 17:45:46 +03:00
Pavel Dolgov
6ebd6d9b4d
Java: Fixed conversion of constructor parameters for java.awt.Color (IDEA-172996)
2017-06-01 13:30:14 +03:00
Tagir Valeev
588d978362
OptionalIsPresentInspection: do not warn if map() part can be null
...
If we cannot determine the non-nullity of map expression, then info
level is used. Fixes IDEA-172609 "Replace Optional.isPresent() checks
with functional-style expressions" is broken.
2017-05-31 17:48:57 +07:00
Anna Kozlova
3f76ffa2f8
provide quick fix to qualify super call to default interface method from class (IDEA-172325)
2017-05-30 15:00:42 +03:00
Tagir Valeev
b209ade15d
TrivialFunctionalExpressionUsageInspection: disable for multi-statement lambda in "for" init/update
2017-05-29 12:19:05 +07:00
Anna Kozlova
5e77c443de
simplification following IDEA-CR-21392
2017-05-26 13:36:45 +03:00
Anna Kozlova
770ebf45af
disable trivial functional expression for body with returns (IDEA-173436)
2017-05-25 16:06:05 +03:00
Tagir Valeev
3fda127a48
ComparatorResultComparisonInspection: renamed to "Suspicious usage of compare method"
2017-05-24 18:14:30 +07:00
Tagir Valeev
1db8b83dff
IDEA-173177 Inspection: Comparing 'compareTo()` or 'Comparator.compare()' result with 1 / -1
2017-05-24 14:14:16 +07:00
Pavel Dolgov
16b1765f7f
Java: Better handling of unreachable code (IDEA-172642)
2017-05-23 12:28:44 +03:00
Anna Kozlova
e747d52bf5
create method from usage: treat polyadic expressions as for completion by containing expression (IDEA-151432)
2017-05-18 13:25:30 +03:00
Anna Kozlova
987caaf26d
provide this(); fix when constructor requires super call (IDEA-151335)
2017-05-18 10:50:55 +03:00
Anna Kozlova
40cbf4648a
fix testdata
2017-05-18 10:50:55 +03:00
Tagir Valeev
f2442e32fa
ConvertSwitchToIfTest: test5 rewritten as getClass() is now pure
2017-05-18 14:36:52 +07:00
Tagir Valeev
8323d2f78d
BulkMethodInfo: support for Java 1.4 (fixes EA-101278).
2017-05-17 11:54:09 +07:00
Anna Kozlova
94dd554c0c
don't use void in non-free method calls (IDEA-172958)
2017-05-16 21:33:01 +03:00
Alexey Kudravtsev
920d5b4fba
removed default file header, because it adds no information but subtracts attention and space
2017-05-11 13:39:07 +03:00
peter
932d1215d6
make 'remove loop' fix work for '(false)' and 'for' (IDEA-CR-20896)
2017-05-10 17:11:34 +02:00
Bas Leijdekkers
5016eead0e
better quick fix name
2017-05-02 20:47:50 +02:00
Anna Kozlova
c0dbaa0332
process overloads to create method by method reference (IDEA-172193)
2017-05-02 12:31:24 +03:00
Tagir Valeev
c3dd106963
LightCodeInsightTestCase: now test name can force the language level.
2017-04-28 15:14:27 +07:00
Bas Leijdekkers
af0239a648
test "Fix all 'Unnecessary fully qualified name' problems in file"
2017-04-27 19:21:50 +02:00
Anna.Kozlova
d82105d5ec
check possible inference for method references before simplification (IDEA-171976)
2017-04-26 20:36:29 +02:00
Tagir Valeev
9127146364
DataFlowInspection: highlight method references known to return constant true/false value with quick-fix changing them to trivial lambdas (partially fixes IDEA-170885).
2017-04-26 12:43:30 +07:00
Tagir Valeev
54eb5b2d2b
IDEA-171854 Suggest replacing boxed compareTo with convenience methods from Java 7
2017-04-24 17:41:21 +07:00
Anna.Kozlova
85cdf34c8a
disable import static constant at annotation position
2017-04-21 20:03:27 +02:00
Roman Shevchenko
e780dc29d6
Merge remote-tracking branch 'origin/master'
2017-04-21 14:05:46 +02:00
Roman Shevchenko
a7c9a25e2a
[java] fixes formatting in "provides with" reference list
2017-04-21 13:39:40 +02:00
Tagir Valeev
036f556c55
ControlFlowUtils#statementBreaksLoop: fix void return case
2017-04-21 17:52:15 +07:00
Bas Leijdekkers
58f662cf62
try to make quick fix name more clear
2017-04-19 22:06:58 +02:00
Pavel Dolgov
af08eeeeb9
Merge duplicate statements in module-info.java - merge all duplicates at once, preserve comments, set caret to the resulting statement (IDEA-169211)
2017-04-19 13:57:14 +03:00
Pavel Dolgov
9a6fa90298
Java: Quick fix for merging duplicate statements in module-info - don't offer to merge the statements where merging is equivalent to deletion (IDEA-169211, IDEA-CR-19927)
2017-04-14 16:19:18 +03:00
Anna.Kozlova
c9554bd544
move initializer to setup: should work when setup method is there (IDEA-171236)
2017-04-11 11:52:20 +02:00
Tagir Valeev
d0bd812d05
BoolUtils#getNegatedExpressionText: push negation down into || and &&
2017-04-10 16:11:18 +07:00
Tagir Valeev
f4c6d909ab
IDEA-171205 Create local variable from usage: honor most suitable overload by parameter count
2017-04-10 11:29:42 +07:00
Anna.Kozlova
c0b06a8f2a
java 8: access static method through instance variable: don't show warning, error is enough; add quick fix for an error same as for inspection
2017-04-07 18:20:18 +02:00
Anna.Kozlova
32073ed7f9
java 9: hide inappropriate for interface modifier suggestions, ensure valid combination of modifiers (IDEA-171091)
2017-04-07 18:20:18 +02:00
Anna.Kozlova
412d071d08
add fixes to change expected type when inference fails due to it (IDEA-162846)
2017-04-07 09:51:10 +02:00
Anna.Kozlova
afd31563b0
convert to diamonds: ensure check for applicability is performed on static factory as otherwise it would be just skipped (IDEA-170813)
2017-04-05 10:00:19 +02:00
Bas Leijdekkers
94fdc35577
"push condition inside call" intention replaced with "Conditional can be pushed inside branch" inspection
2017-04-04 22:47:39 +02:00
Anna.Kozlova
51d4e9936a
static imports: don't compare with expected type when it depends on unresolved reference (IDEA-163072)
2017-03-31 18:01:29 +02:00