Pavel Dolgov
|
a0afa83117
|
Java inspections: Created "Move return to computation" inspection, added a few tests (IDEA-121153)
|
2016-09-06 19:05:05 +03:00 |
|
Anna Kozlova
|
b8d5b9ab09
|
anonym -> functional: allow cast to resolve overload resolution
|
2016-09-06 11:58:45 +03:00 |
|
Tagir Valeev
|
838d8a7146
|
IDEA-160789 Migration to Stream API: replace with mapToInt/Long/Double().sum() when possible
|
2016-09-06 15:50:03 +07:00 |
|
Tagir Valeev
|
b0b62211d6
|
IDEA-160784 Migration to Stream API: replace with Stream.count() when possible (now i+=1 and i=i+1 also supported)
|
2016-09-06 12:37:05 +07:00 |
|
Tagir Valeev
|
7214316544
|
IDEA-160778 Buggy replacement with collect when several variables are declared in the same statement
|
2016-09-06 12:08:23 +07:00 |
|
Tagir Valeev
|
f0276b724d
|
StreamApiMigrationInspection: use toList()/toSet() collector if target variable type is Collection
|
2016-09-06 11:56:13 +07:00 |
|
Tagir Valeev
|
e72f6656f8
|
IDEA-160784 Migration to Stream API: replace with Stream.count() when possible
|
2016-09-05 17:47:41 +07:00 |
|
Tagir Valeev
|
13d9f8d53a
|
IDEA-CR-13504 Lambda to method-reference: PsiVariable is accepted as it's necessary for StreamApiMigrationInspection;
StreamApiMigrationInspection.TerminalBlock simplified (myFrom/myTo did not actually improve performance, but added unnecessary logic)
|
2016-09-05 08:57:55 +07:00 |
|
Tagir Valeev
|
b7a423d001
|
IDEA-160707 Stream API migration: support object arrays
|
2016-09-02 17:55:07 +07:00 |
|
Tagir Valeev
|
6bd88cf67f
|
IDEA-160637 test fixed
|
2016-09-02 14:47:07 +07:00 |
|
Tagir Valeev
|
1a1290751c
|
IDEA-160637 Stream API migration: support map and flatMap steps
|
2016-09-02 14:40:40 +07:00 |
|
Anna Kozlova
|
98687b3c65
|
replace with foreach: disable for arrays of collection type (IDEA-160323)
|
2016-08-26 11:53:30 +03:00 |
|
Anna Kozlova
|
1784622744
|
bind parameter to field: ensure applicable field is chosen/skip already assigned (IDEA-160180)
|
2016-08-25 21:03:40 +03:00 |
|
Tagir Valeev
|
26841947aa
|
InvalidComparatorMethodReferenceInspection: fixes according to IDEA-CR-13278
|
2016-08-25 16:45:13 +03:00 |
|
Tagir Valeev
|
f96b5696c3
|
IDEA-160239 Warn about using Integer::min, Integer::max where Comparator expected
|
2016-08-25 12:34:41 +03:00 |
|
Dmitry Avdeev
|
03d53cc1d5
|
IDEA-160207 Redundant default parameter value assignment doesn’t catch unnecessary array assignments
|
2016-08-25 12:13:37 +03:00 |
|
Anna Kozlova
|
08a18bc8bd
|
surround with if: fix for expression lambda (IDEA-160218)
|
2016-08-24 15:14:38 +03:00 |
|
Anna Kozlova
|
6d77cd0e05
|
unused declaration: merge unused parameters inspection
|
2016-08-22 08:21:16 +03:00 |
|
Anna Kozlova
|
e743d2ad59
|
ensure cast to class type is suggested when argument type is null (IDEA-159884)
|
2016-08-16 17:39:07 +03:00 |
|
Anna Kozlova
|
a5af84762d
|
can be diamond: ensure inner class is referenced as simple name, otherwise qualified text with generics outer class would lead to kinda raw type (IDEA-159179)
|
2016-08-12 09:21:55 +03:00 |
|
Bas Leijdekkers
|
d543f426ad
|
fix silly assignment tests
|
2016-08-02 13:57:18 +02:00 |
|
Pavel Dolgov
|
b525e80a87
|
Java inspection: Returned back RemoveRedundantElseAction intention, because it turns out it's useful in some cases (IDEA-157727)
|
2016-07-20 18:50:32 +03:00 |
|
Alexey Kudravtsev
|
db48c64473
|
use mockJdk18 by default in LightCodeInsightTestCase; remove dependency on swing/net classes in some tests
|
2016-07-20 15:47:18 +03:00 |
|
Pavel Dolgov
|
3773948686
|
Java inspection: Added a fix for single-value annotations where the annotation doesn't have a 'value()' method and therefore "Expand Annotation to Normal Form" fix couldn't be applied (IDEA-158456, IDEA-157727)
|
2016-07-20 13:33:13 +03:00 |
|
Anna.Kozlova
|
750afb8497
|
return type fix: change type arguments of dependant type parameters only (IDEA-158361)
|
2016-07-11 18:05:00 +02:00 |
|
Anna Kozlova
|
4e813690f7
|
anonymous -> lambda: allow field shadowing when suggesting new local names (IDEA-157288)
|
2016-07-08 10:46:34 +02:00 |
|
Pavel Dolgov
|
65a5b0e437
|
Java intention: Quick fix for error "foreach not applicable to type java.util.Iterator" - handle comments and take care of empty block when copying the loop body (IDEA-124751)
|
2016-07-04 14:37:31 +03:00 |
|
Pavel Dolgov
|
9104e6ede4
|
Java intention: Quick fix for error "foreach not applicable to type java.util.Iterator" - a test added (IDEA-124751)
|
2016-07-01 16:28:17 +03:00 |
|
Pavel Dolgov
|
d50a5c7a07
|
Java intention: Quick fix for error "foreach not applicable to type java.util.Iterator" (IDEA-124751)
|
2016-07-01 16:12:36 +03:00 |
|
Anna Kozlova
|
7d48d00ae9
|
anonymous -> lambda: restore comments (non-javadoc) outside method body (IDEA-157286)
|
2016-06-30 21:02:38 +03:00 |
|
Anna Kozlova
|
153255f9d2
|
anonymous -> lambda: enable casts again (IDEA-157960)
|
2016-06-29 16:18:27 +03:00 |
|
Pavel Dolgov
|
c3bd56a80c
|
Java inspection: convert the intention for "Make Type Generic" into an INFORMATION-level inspection (IDEA-157727)
|
2016-06-28 15:13:49 +03:00 |
|
Pavel Dolgov
|
10c335b44e
|
Java inspection: In "Join Declaration and Assignment" intention action warn about side effects of the initializer being removed (IDEA-157727)
|
2016-06-27 15:37:13 +03:00 |
|
Pavel Dolgov
|
92838f48bc
|
Java inspection: Get rid of RemoveRedundantElseAction, as it's totally inferior to DataFlowInspection (IDEA-157727)
|
2016-06-24 14:00:51 +03:00 |
|
Pavel Dolgov
|
5e380e7526
|
Java inspection: convert the intention for "Remove redundant lambda parameter types" into an INFORMATION-level inspection (IDEA-156028, IDEA-157727)
|
2016-06-24 14:00:51 +03:00 |
|
Anna Kozlova
|
923b6cf252
|
delegate params: compound 2 intentions in one, set preselection (IDEA-112043)
|
2016-06-24 12:04:48 +03:00 |
|
Anna Kozlova
|
4f45f25c38
|
redundant exception: ignore recursive calls (IDEA-157773)
|
2016-06-22 17:58:08 +03:00 |
|
Anna Kozlova
|
81f3f9b17e
|
make class static on unresolved 'static' method reference (IDEA-157364)
|
2016-06-20 10:29:14 +03:00 |
|
Anna Kozlova
|
f7fbc4b4bc
|
anonymous -> lambda: accept anonymous classes with inferred another type and ref to a parameter as the cast would be inserted (IDEA-157457)
|
2016-06-15 13:44:38 +03:00 |
|
Anna Kozlova
|
9132043620
|
add single static import: allow second single static import if it doesn't produce ambiguity or hiding of on-demand import (IDEA-155031)
|
2016-06-07 10:57:34 +03:00 |
|
Anna Kozlova
|
de94a3250f
|
redundant cast inside conditional when opposite has another type
|
2016-06-06 17:52:24 +03:00 |
|
Anna Kozlova
|
a68cb4dfd3
|
disable conversion from anonymous if method has javadoc
|
2016-05-31 18:38:26 +03:00 |
|
Anna Kozlova
|
86aa72abe4
|
preserve comments while converting from lambda to method ref (IDEA-156734)
|
2016-05-31 11:44:10 +03:00 |
|
Anna Kozlova
|
7627e03439
|
fixed testdata
|
2016-05-30 20:01:09 +03:00 |
|
Anna Kozlova
|
4585214187
|
add single static import: don't replace instance member calls (IDEA-153929)
|
2016-05-26 18:56:33 +03:00 |
|
Anna Kozlova
|
137ee60763
|
create method from method reference: make abstract if inside interface and not static (IDEA-156596)
|
2016-05-25 19:37:58 +03:00 |
|
Anna Kozlova
|
3e2423f245
|
change signature from usage: ignore types of poly expressions if they are not assignable (IDEA-156521)
|
2016-05-25 18:40:17 +03:00 |
|
Anna.Kozlova
|
99ce4b4f46
|
redundant lambda code block: check applicability over replaced lambda
|
2016-05-23 16:29:23 +02:00 |
|
Anna.Kozlova
|
d2136b76b2
|
disable import of static constant on type element/assignment place (IDEA-156162)
|
2016-05-17 21:13:20 +02:00 |
|
Anna.Kozlova
|
ff555bd832
|
disable remove redundant else if then branch can throw exception (IDEA-156142)
|
2016-05-17 17:41:48 +02:00 |
|