Commit Graph

1381 Commits

Author SHA1 Message Date
Dmitry Batkovich
6ac8c32b13 extract BaseExternalAnnotationsManager#preferCompilerElement to PsiUtil (IDEA-CR-14364) 2016-10-11 23:38:45 +03:00
Roman Shevchenko
fcfa063303 Merge remote-tracking branch 'origin/master' 2016-10-11 16:37:45 +02:00
Roman Shevchenko
893955e1fe [java] using module stubs in analysis/highlighting code 2016-10-11 16:37:01 +02:00
Yann Cébron
4b7e12c95d [java-psi-api] add missing override PsiNameValuePairPattern.withName(ElementPattern<String>) 2016-10-11 13:16:27 +02:00
Bas Leijdekkers
4aa0b93fe4 make fields final 2016-10-10 17:28:53 +02:00
Roman Shevchenko
fef8babaad [java] stubs for 'requires' and 'exports' statement 2016-10-07 21:04:01 +02:00
Anna.Kozlova
98094c72de lambda: ensure deep nested lambdas get target types from top level inference (IDEA-157314) 2016-10-07 13:55:01 +02:00
Anna.Kozlova
c0de6f3d36 EA-89400 - assert: PsiPrimitiveType.getUnboxedType 2016-10-07 13:55:01 +02:00
Anna.Kozlova
b0b503a8e0 forbid PsiExpressionStatement as functional expression context; prefer not a statement error in highlighting 2016-10-05 10:31:37 +02:00
Anna.Kozlova
1f41202f49 redundant cast: mark raw cast as redundant when raw is expected (IDEA-162022) 2016-10-04 18:45:14 +02:00
Anna.Kozlova
031f71c5b3 redundant cast: don't highlight conditional with functional branches (IDEA-161971) 2016-10-04 18:45:14 +02:00
Anna.Kozlova
3332a677a6 allow functional interfaces in conditionals inside assignment or invocation contexts only 2016-10-04 18:45:14 +02:00
peter
3c837081d8 fix tests: Comparator is a functional interface 2016-09-29 16:10:19 +02:00
peter
0b00f7498c faster LambdaUtil.isFunctionalClass check (and other related methods) 2016-09-29 14:43:07 +02:00
Roman Shevchenko
4f22f2e176 [java] Jigsaw package accessibility highlighting (source dependencies) 2016-09-29 14:11:09 +02:00
peter
8cc5b37118 reduce the number of LambdaUtil.findFunctionCandidates usages 2016-09-29 12:58:40 +02:00
Anna.Kozlova
21a788213a lambda: collected signatures are already different, no need in second isSubsignature check 2016-09-28 15:25:12 +02:00
Tagir Valeev
89185189d9 StreamApiMigrationInspection: utility methods moved to appropriate classes; LambdaUtil contracts added 2016-09-27 11:21:17 +07:00
Yaroslav Lepenkin
0fc703165a [InlayParameterHints] Move option to Editor | Appearance, enable by default 2016-09-21 20:09:21 +03:00
Anna Kozlova
64feea17aa make logs private to avoid static imports suggestions 2016-09-21 17:30:24 +03:00
Yaroslav Lepenkin
6b7a62c3e7 Revert: [InlayParameterHints] Move option to Editor | Appearance, enable by default 2016-09-21 15:04:20 +03:00
Yaroslav Lepenkin
4ad43205e3 [InlayParameterHints] Move option to Editor | Appearance, enable by default 2016-09-21 14:52:05 +03:00
peter
ca8004bfea IDEA-160991 Returning null should result in a warning in @TypeQualifierDefault notnull method 2016-09-19 18:05:40 +02:00
peter
490d4e67bd IDEA-76782 Generate runtime assertions for all configured not-null annotations 2016-09-19 12:04:52 +02:00
Anna Kozlova
f4dae32d7f overload resolution: prefer candidates with functional formal type if lambda is passed; this way conflict would be resolved and nested error would be shown instead 2016-09-16 08:34:15 +03:00
Anna Kozlova
a493ff0f1d annotations: check that modifier list corresponds to class modifier list when ignore list during process declarations (IDEA-160106) 2016-09-16 08:34:14 +03:00
Anna Kozlova
8d3c33eb8c Revert: annotations: check error elements after annotation to rise annotation not expected here instead of some unpredictable warnings (IDEA-160106) (d4e7271498) 2016-09-15 20:53:42 +03:00
Anna Kozlova
d4e7271498 annotations: check error elements after annotation to rise annotation not expected here instead of some unpredictable warnings (IDEA-160106) 2016-09-15 18:35:33 +03:00
Anna Kozlova
92e17eed9c substitute type parameter bounds with current substitution when method signatures in the hierarchy are checked (IDEA-159801) 2016-09-15 18:35:33 +03:00
Daniil Ovchinnikov
681bfa22e1 Extract psi class scope comparator 2016-09-14 14:25:16 +03:00
Anna Kozlova
657339a006 junit 5: allow to start default methods of interfaces 2016-09-14 11:45:40 +03:00
Tagir Valeev
256823f66a IDEA-CR-13704 PsiMethodUtil::isCompareToCall moved to MethodUtils; code reused from MethodUtils::isCompareTo; redundant null checks removed 2016-09-13 10:54:42 +07:00
Roman Shevchenko
210e6844ac Merge remote-tracking branch 'origin/master' 2016-09-12 17:14:46 +03:00
Roman Shevchenko
48ce294241 [java] javadoc in modules 2016-09-12 17:13:22 +03:00
Roman Shevchenko
71a05d01e7 [java] allows non-members to host a javadoc comment 2016-09-12 17:12:22 +03:00
Tagir Valeev
dc37f19e2b IDEA-161007 Add new inspection to make comparator lambdas use Comparator.comparing() combinators (Currently only simple comparators supported) 2016-09-12 17:50:47 +07:00
Alexey Kudravtsev
e009bd0460 cleanup 2016-09-07 14:12:33 +03:00
Alexey Kudravtsev
db6d4e1fcc removed "suppress unused" for deprecated methods to avoid using them again, especially since some of them already are. 2016-09-07 14:12:33 +03:00
Roman Shevchenko
c3a623e167 Cleanup (internal type text expressed via canonical wherever possible) 2016-09-02 14:58:53 +03:00
Alexey Kudravtsev
d088214c8d cleanup 2016-09-01 14:02:33 +03:00
peter
dbf3491ae6 don't infer contract/nullity for magic constant inspection 2016-09-01 10:00:38 +02:00
Roman Shevchenko
c6c4aa93ca [java] module 'provides' statement highlighting 2016-08-26 19:23:02 +03:00
Roman Shevchenko
762263320b [java] module 'uses' statement highlighting 2016-08-26 13:23:09 +03:00
Roman Shevchenko
ca0342f342 [java] module 'exports' package completion 2016-08-25 20:51:25 +03:00
Roman Shevchenko
da27335c78 [java] module 'exports' statement highlighting 2016-08-25 19:00:21 +03:00
Roman Shevchenko
cfd385ea0c Cleanup (constants; formatting) 2016-08-18 19:38:58 +03:00
Pavel Dolgov
fcf55ad8b8 Javafx: Fixed removing the prefix of the property getter name - remove only "is" and "get" prefixes, don't change property binding methods' names (IDEA-159866) 2016-08-17 13:35:35 +03:00
Roman Shevchenko
1a046a6be7 Cleanup (string constants) 2016-08-16 16:18:12 +03:00
Roman Shevchenko
4c2c1a084c [java] resolve in modules 2016-08-16 16:18:12 +03:00
peter
c71d5554c0 declare addIfNotNull(collection, element) to be the right one 2016-08-10 15:05:59 +02:00