Anna Kozlova
339c14cd12
disable split into decl 7/ assignment for conflicting names (IDEA-173787)
...
for statement induces another declaration parent where another local variable could have been declared
2017-06-26 18:07:01 +03:00
Anna Kozlova
9e12271bd3
invert if: fix psi replacement (IDEA-174966)
2017-06-26 17:07:29 +03:00
Anna Kozlova
67819c1e1f
disable move initializer to constructor for final fields with usages in initializers (IDEA-174973)
2017-06-26 16:14:34 +03:00
Anna Kozlova
4311ffcd29
add on demand static import: proceed with type arguments (IDEA-174965)
...
otherwise unused imports could be inserted and the references won't be collapsed inside <>
2017-06-26 16:11:56 +03:00
Anna Kozlova
ed4a26a905
add single static import: ensure not available when conflict(IDEA-174983)
...
when methods (> 1) with same name exist in the containing class
2017-06-26 16:11:56 +03:00
Anna Kozlova
fdf412aca7
transitive overriding methods check: applied for interfaces (IDEA-174806)
2017-06-23 18:19:42 +03:00
Anna Kozlova
0e5a7bca67
testdata for IDEA-174924
2017-06-23 18:19:42 +03:00
Anna Kozlova
d9145615c7
testdata
2017-06-22 21:46:30 +03:00
Anna Kozlova
db549e17d1
take into account container class type parameters: unchecked warnings
2017-06-22 15:54:30 +03:00
Anna Kozlova
cbe6eb48ed
take into account container class type parameters: return type
...
detection if return type mentions type parameters should include types specified on outer class
2017-06-22 15:54:30 +03:00
Anna Kozlova
cba2ff917b
take into account container class type parameters
...
when non-generic inner class is located inside generic outer, inference variables could be hidden in parent parameters (IDEA-174762; IDEA-174776)
2017-06-22 12:14:03 +03:00
Pavel Dolgov
0aa8430cb4
Java: Look for redundant assignment of a field in class and field initializers (IDEA-149587)
2017-06-21 14:45:30 +03:00
yarik
ced545552a
[java formatter] c style comments formatting supported. Note, only single line comments or comments with each line starting with asterisks will be formatted, since by using /* and */ you
2017-06-20 14:48:26 +03:00
Anna Kozlova
b6482f44a1
add static import: use existing import name (IDEA-174647)
2017-06-20 11:32:03 +03:00
Anna Kozlova
5d8e3f67a1
don't override first field by same named second (IDEA-174523)
2017-06-16 11:53:53 +03:00
Anna Kozlova
38f29c5389
restore class by index in target file for top level classes
...
EA-36372 - assert: CreateSubclassAction$.templateFinished
2017-06-15 18:14:17 +03:00
Anna Kozlova
f60676d110
default Optional.empty for Optional type (IDEA-174268)
2017-06-14 19:27:02 +03:00
Dmitry Batkovich
87b68598cb
add javadoc intention should be unavailable if javadoc already exists IDEA-174275
2017-06-14 17:11:07 +03:00
Dmitry Batkovich
b1d40b518b
relevant method chain completion: introduce new field if completion for field initializer is called (EA-103019)
2017-06-14 16:53:21 +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
Anna Kozlova
605dfb1c3c
redundant cast: ensure cast type compared with ground type (IDEA-174369)
...
remove attempts to emulate that and reuse getGroundTargetType api
2017-06-13 20:27:13 +03:00
Anna Kozlova
4b3e51a69d
testdata changes
2017-06-13 20:27:12 +03:00
Maxim.Mossienko
0573e1f109
update tests and testdata to reflect newer mock jdk 1.7
2017-06-13 15:30:25 +02:00
Anna Kozlova
fb928f72c6
lambda inference: conditional expressions in returns (IDEA-174301)
...
skip conditionals and parenthesis during find top expression
2017-06-13 16:12:45 +03:00
Anna Kozlova
634a945b0f
apply unifying substitutor to compare return types (IDEA-174292)
...
attempt to apply incompatible return types in method hierarchy due to method type parameters used in return types
2017-06-13 16:12:44 +03:00
Maxim.Mossienko
7387ee525b
update tests and testdata to reflect newer mock jdk 1.7
2017-06-13 15:09:42 +02:00
peter
2e6cfa9223
don't generate setters for constants during completion (IDEA-CR-21764)
2017-06-09 18:16:19 +02:00
Roman Shevchenko
0d61e56b64
[java] recognizes @index Javadoc tag (IDEA-160185)
2017-06-09 17:50:49 +03:00
peter
1a4a90e174
IDEA-173726 Generation completion suggests create setter for final field
2017-06-09 15:41:32 +02:00
Roman Shevchenko
e16815fb9f
[java] drops improperly added Javadoc tag
2017-06-08 19:14:48 +03:00
Anna Kozlova
e78186d6ae
support for arrays in template j.u.Objects.equals/hashCode (IDEA-162302)
2017-06-08 17:49:06 +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
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