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
peter
b8588d2006
prefer local variables over NULL_PSI_ELEMENT in smart completion
2017-06-07 13:35:28 +02: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
Roman Shevchenko
2c3c7ccbce
Merge remote-tracking branch 'origin/master'
2017-06-06 17:19:20 +03:00
Roman Shevchenko
71966404b9
[java] excludes multi-release classes from search (IDEA-164460)
2017-06-06 17:18:39 +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
peter
03a663c63e
IDEA-165006 Support chained completion for method references in Java 8+
2017-06-05 19:20:02 +02: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
a5501a81c0
incompatible return types in hierarchy fixed (IDEA-173809)
...
take parameter bounds into account
2017-06-05 20:14:44 +03:00
Dmitry Batkovich
fbd082f075
create switch intention: disable in for update IDEA-173690
2017-06-05 20:06:31 +03:00
Anna Kozlova
6423538939
surround with array fix: disable for non-denotable types (IDEA-173797)
2017-06-05 17:45:46 +03:00
Anna Kozlova
12c350758d
Interface.super method calls: ensure valid qualifier (IDEA-173888)
...
forbid calls to super methods which are overridden in direct superinterfaces
2017-06-05 14:34:18 +03:00
Anna Kozlova
377520ade5
intersection type validation fixed (IDEA-173900)
...
take type parameter bounds into account
2017-06-05 14:34:18 +03:00
peter
d82927a096
javadoc: show short annotation names in signatures and full names with explanations underneath (IDEA-167076, IDEA-166361)
2017-06-03 23:27:11 +02: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
peter
d9accfb4d4
IDEA-173473 Class type argument brackets are still inserted despite that being disabled
2017-05-30 20:10:36 +02: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
Dmitry Batkovich
1279ab20d8
method chain completion: make it works inside return statement
2017-05-29 19:16:06 +03:00
Tagir Valeev
b209ade15d
TrivialFunctionalExpressionUsageInspection: disable for multi-statement lambda in "for" init/update
2017-05-29 12:19:05 +07:00
peter
b15f49ac7a
IDEA-173298 Type inference doesn't properly find return type when it is more restricted in interface than abstract class
2017-05-26 14:42:42 +02:00
peter
d30a552fcb
IDEA-173437 Completion suggestion is bad for ObjectUtils.tryCast
2017-05-26 14:42:42 +02:00
Anna Kozlova
5e77c443de
simplification following IDEA-CR-21392
2017-05-26 13:36:45 +03:00
Anna Kozlova
51bcfcecf9
inference: don't traverse up through lambda bounds when parent inference was already started, in this case it's exception inference which should work without top level node (EA-83073 - assert: LambdaUtil.treeWalkUp; IDEA-173467)
2017-05-26 13:36:45 +03:00
Roman Shevchenko
6cb9cf0b6b
[java] recognizes claimed name in automatic modules (a test)
2017-05-25 20:19:12 +03:00
Anna Kozlova
770ebf45af
disable trivial functional expression for body with returns (IDEA-173436)
2017-05-25 16:06:05 +03:00
Anna Kozlova
fabc3a7ee8
fix testdata
2017-05-25 12:51:13 +03:00
Anna Kozlova
0aedb9b9ad
external annotations tests for rename/move
2017-05-25 12:51:13 +03:00
peter
4208f1d7b3
java completion: group fields together with local variables (IDEA-168743 , IDEA-172888)
2017-05-24 20:40:20 +02: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
011b8e4e10
checked exception constraints: ensure ground type (IDEA-173200)
2017-05-22 11:25:29 +03:00
Anna Kozlova
237f4e0f7e
show javadoc for getters/setters copied from field (IDEA-60161)
2017-05-22 10:04:57 +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
Anna Kozlova
5459a3b0e0
update testdata (IDEA-CR-21114)
2017-05-16 11:39:50 +03:00
Anna Kozlova
d634c51afe
javadoc: include all throws unchecked exceptions from all super methods (IDEA-152938)
2017-05-15 18:59:37 +03:00
Dmitry Batkovich
18592664b7
method chain completion: remove sub lookup element (automatic argument insertion)
2017-05-15 16:27:16 +03:00
Pavel Dolgov
c7d8ad3401
Java: Don't reuse cached ControlFlow when the context is not equivalent (IDEA-168768)
2017-05-15 12:34:52 +03:00
peter
29672cb324
java smart completion: prefer all items with exactly expected type, not only classes (IDEA-169490)
2017-05-15 09:16:00 +02:00
peter
1c977bd5dd
IDEA-170406 Prefer expected enum constants in annotation attribute, despite statistics
2017-05-13 07:53:22 +02:00
Alexey Kudravtsev
4a4626c750
removed default file header, because it adds no information but subtracts attention and space
2017-05-12 14:02:24 +03:00