Commit Graph
1263 Commits
Author SHA1 Message Date
Alexey Kudravtsev ffc41b19b7 <code> replaced with {@code} 2016-12-08 19:42:17 +03:00
Roman Shevchenko 47a2ee977e Cleanup (formatting) 2016-12-02 18:46:41 +01:00
Tagir Valeev 1b57cda533 TerminalOperation, RedundantCastUtil: cleanup (InheritanceUtil.isInheritor(PsiType, String) used; PsiUtil.substituteTypeParameter used; more specific type used where possible) 2016-12-02 16:30:56 +07:00
Anna.Kozlova 79e84fd340 add contract anno 2016-12-01 16:52:02 +01:00
Anna.Kozlova 936294e05d allow functional expressions in nested conditional expressions (IDEA-164828) 2016-12-01 16:52:02 +01:00
Anna.Kozlova a17be30b79 include package local methods into method hierarchy (IDEA-164557) 2016-12-01 10:39:31 +01:00
Anna.Kozlova 83bb640734 ensure inserted single-static-import when conflicting on-demand imports are presented (IDEA-155031) 2016-11-25 09:56:52 +01:00
Daniil Ovchinnikov e4dbfec0de @NotNull 2016-11-22 18:03:56 +03:00
Bas Leijdekkers cbab61f15b fix annotation matching in duplicates finder 2016-11-21 17:09:15 +01:00
Tagir Valeev f60c60c661 IDEA-164144 Intention offers change to comparingInt for long fields 2016-11-21 13:08:30 +07:00
peter ad948aaaea delete some deprecated stuff 2016-11-17 11:32:54 +01:00
Anna.Kozlova e07ba85de3 distinguish interfaces inside type args, see RedundantCast15Test#testRawCastsToAvoidIncompatibility 2016-11-15 19:36:49 +01:00
Anna.Kozlova 39aa837db3 inference: don't distinguish parameterizations with 2 different interfaces (IDEA-163950) 2016-11-15 18:11:31 +01:00
peter 979ac11689 drop caches on non-physical file context change (a more universal fix for EA-69690 - PIEAE: StubBasedPsiElementBase.getContainingFile) 2016-11-14 20:39:39 +01:00
Anna.Kozlova 8e960b79e9 javadoc 2016-11-11 14:02:11 +01:00
Alexey Kudravtsev 97e38ad11d cleanup 2016-11-11 14:00:11 +03:00
Tagir Valeev ec55819285 PsiTypesUtil: reverted erroneous changes in getExpectedTypeByParent (IDEA-CR-15590) 2016-11-11 17:19:40 +07:00
Tagir Valeev 67c4dfb483 Moved TypeUtils#getMethodReturnType -> PsiTypesUtil; used in LambdaUtil#getFunctionalInterfaceType amd PsiTypesUtil#getExpectedTypeByParent (IDEA-CR-15590) 2016-11-11 10:23:15 +07:00
Anna.Kozlova 08c5a244c3 reigiable local classes inside static methods (IDEA-163615) 2016-11-07 18:56:11 +01:00
Daniil Ovchinnikov 67a825ab4a JavaLanguage.INSTANCE @NotNull 2016-11-03 17:01:08 +03:00
Dmitry Batkovich 7b35665044 java functional expressions: render functional expressions in show implementation using stubs if possible 2016-10-25 21:35:36 +03:00
Alexey Kudravtsev 677a5280eb annotate varargs methods with SafeVarargs or add corresponding external annotation to get rid of yellow callsites 2016-10-24 15:11:30 +03:00
Alexey Kudravtsev e391391526 look for SafeVarargs in external annotations to get rid of yellow code when java8-level code calls java6-level varargs method. 2016-10-24 15:11:30 +03:00
Daniil Ovchinnikov a9e1993eed @NotNull 2016-10-21 22:14:15 +03:00
Anna.Kozlova 1ad3c13369 don't load ast when possible to stay with stubs 2016-10-21 18:14:07 +02:00
Anna.Kozlova 9bcbdb68cb inference: register inference error when nested inference don't start as cached session already had errors 2016-10-21 18:07:07 +02:00
Anton Tarasov b0737a9f3a [followup] IDEA-162563 Action menus do not have icons under HiDPI linux
- New interface: JBUI.JBIcon. EmptyIcon now implements it.
- New method: JBUI.scale(JBIcon)
2016-10-20 16:12:56 +03:00
Anna.Kozlova e33afb79bb logging for EA-90262 - assert: RedundantCastUtil$MyIsRedundantVisitor.processCall 2016-10-20 13:14:23 +02:00
Anna.Kozlova 8952680a73 completion: infer Throwable for thrown bounds in completion so more candidates would be applicable (IDEA-162710) 2016-10-20 13:14:23 +02:00
Dmitry Batkovich 1bc12672eb Merge branch 'db/javac-ast'
# Conflicts:
#	platform/util/resources/misc/registry.properties
2016-10-17 19:05:41 +03:00
Alexey Kudravtsev 5825a4a6be verbose diagnostics for incomplete annotation error 2016-10-12 13:43:02 +03:00
Alexey Kudravtsev 42a65034e8 cleanup 2016-10-12 13:43:02 +03:00
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