Anna Kozlova
6fdc29ee24
highlight comments inside qualified names (IDEA-154450)
2016-08-15 20:17:11 +03:00
Anna Kozlova
8a0c63df61
names highlighting: don't highlight typed reference as class name (IDEA-65270)
2016-08-15 20:17:11 +03:00
peter
9776d5a28d
speedup functional expression search (IDEA-159107)
...
* filter inapplicable expressions without loading AST if possible, via approximate resolve
* for that, store the approximate call chains in index
* iterate over files once, not for each empty marker Runnable interface separately
* don't rely on generic method parameter index: it's huge, memory-hungry and works only in Java
2016-08-13 12:12:19 +02:00
peter
e8ea2598f3
fun expr search: minor improvements after reviews
2016-08-13 12:12:19 +02:00
Anna.Kozlova
1839e42715
treat captured wildcard type as type parameter type with special upper bound (IDEA-159663)
2016-08-12 11:06:57 +02: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
Anna.Kozlova
369c9a24b4
diamonds: fix conflicting names between constructor and class type parameters (rename the constructor type parameters)
2016-08-09 15:52:11 +02:00
Anna.Kozlova
0e3d077bfe
fix inheritance of abstract and default methods when multiple defaults are present
2016-08-09 15:52:11 +02:00
Anna Kozlova
8ac15c13de
check context for functional expressions once (IDEA-159362)
2016-08-08 08:35:27 +02:00
Anna Kozlova
ccf3beba42
check diamond applicability over static factory underneath (IDEA-159287)
2016-08-08 08:35:27 +02:00
peter
522e0b9c2d
don't visit jdk Stream API usages when searching for unrelated functional interface implementations
2016-08-03 12:49:11 +02:00
Pavel Dolgov
d92688892f
Java control flow: Fixed false positive for definite assignment in finally block - more lightweight implementation (IDEA-64488)
2016-08-03 12:47:42 +03:00
Bas Leijdekkers
d543f426ad
fix silly assignment tests
2016-08-02 13:57:18 +02:00
Pavel Dolgov
cb2dfeb368
Java control flow: Fixed false positive for definite assignment in finally block (IDEA-64488)
2016-08-01 20:19:49 +03:00
Bas Leijdekkers
46e4268b8f
Fixed "Variable assigned to itself" quickfix (IDEA-148688)
2016-08-01 17:13:28 +02:00
Pavel Dolgov
7b97664b85
Java control flow: Detect unreachable code when a break or continue in the try block is overridden in the finally block of the same try statement (IDEA-35597)
2016-07-29 14:54:49 +03:00
peter
c71a1e7136
IDEA-158267 Parameter completion overwrites the following lambda declaration ' () -> {}'
2016-07-27 12:15:56 +02:00
Pavel Dolgov
96a576963a
Java control flow: Fixed false positive for unreachable code in multi-catch clause (IDEA-138978)
2016-07-25 19:19:45 +03:00
Pavel Dolgov
8c2803eedc
Java control flow: Handle the case where the variable from the left part of a compound assignment is modified in the right part of the same assignment (IDEA-23725)
2016-07-25 13:36:21 +03:00
peter
22b9dc61a6
fin functional expressions of SAM interfaces related to the given one
2016-07-23 23:05:56 +02:00
peter
2a93e063bd
rewrite functional expression search to use stub index
2016-07-22 17:41:21 +02:00
Anna.Kozlova
f9c6e0fda2
enum constants should be checked to implement enum interfaces
2016-07-22 15:05:47 +02:00
Pavel Dolgov
2be74e8c45
Java control flow: Added conditional branch that bypasses assert statement because assertions can be disabled (IDEA-71526)
2016-07-22 14:58:35 +03:00
Anna.Kozlova
035b6d9d1f
lambda return type inconsistency: highlight all found errors (IDEA-158853)
2016-07-21 19:03:45 +02:00
Anna.Kozlova
d8def3334c
exceptions declared by try with resources should collect all close methods from the resource class and choose exceptions in the intersection (IDEA-158762)
2016-07-21 13:47:22 +02:00
peter
1c451db9ad
a test that lambdas in constructor calls are found
2016-07-21 12:16:42 +02:00
peter
0a4f995460
find lambdas passed into vararg methods
2016-07-21 12:16:41 +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
Roman Shevchenko
f2626b9024
[java] fixes receiver highlighting in local classes (IDEA-158752)
2016-07-20 16:30:11 +02: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
Roman Shevchenko
c4e8bf5219
[java] fixes javadoc inspection false positive for split @see tags (IDEA-158662)
2016-07-18 20:55:24 +02:00
Anna.Kozlova
3ee60dba1d
method ref: ensure top substitutor is not overridden with raw replacement from second method ref search (IDEA-158636)
2016-07-18 14:57:04 +02:00
Anna.Kozlova
f27c5080f6
ensure method signature is highlighted when changes are made inside method body but the actual highlighting is performed on class level (IDEA-141532; IDEA-158137)
2016-07-13 11:43:16 +02:00
Anna.Kozlova
8e7077bb5b
testdata for IDEA-139512
2016-07-13 11:43:16 +02:00
Anna.Kozlova
2be8a720a8
static import when inheritance present (IDEA-158357)
2016-07-12 11:08:35 +02:00
Anna.Kozlova
8eab2c79a4
suppressions: if @Generated found, mark as suppressed even if no @SuppressWarning is present (IDEA-158300)
2016-07-11 18:05:00 +02: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
Anna Kozlova
33273be517
substitute with bounds promotion: don't open captured wildcard for supers (IDEA-155370)
2016-07-04 10:21:00 +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
a714c0d820
unchecked cast warning: missed captured wildcards (IDEA-158080); reifiable captured wildcard type
2016-07-01 12:44:39 +03:00
Anna Kozlova
7896eddc3b
this and super are not available inside anonymous class args
2016-07-01 12:44:39 +03:00
Anna Kozlova
7d48d00ae9
anonymous -> lambda: restore comments (non-javadoc) outside method body (IDEA-157286)
2016-06-30 21:02:38 +03:00
Roman Shevchenko
d41f234c43
Merge remote-tracking branch 'origin/master'
2016-06-30 15:18:24 +03:00
Roman Shevchenko
bf4759fccb
[java] module declaration highlighting (file-level)
2016-06-29 21:02:23 +03:00
Anna Kozlova
1193a54876
warn about unused parameter if method is used locally as method reference as it could be transformed to equivalent lambda (IDEA-157988)
2016-06-29 20:32:32 +03:00
Anna Kozlova
153255f9d2
anonymous -> lambda: enable casts again (IDEA-157960)
2016-06-29 16:18:27 +03:00