Commit Graph

1381 Commits

Author SHA1 Message Date
Tagir Valeev
1bfb45a6d4 LambdaUtil#isIdentityLambda 2017-01-24 15:34:51 +07:00
Alexey Kudravtsev
1a55395a36 notnull 2017-01-20 17:14:39 +03:00
Anna Kozlova
0fe652059e reifiable types: skip anonymous types through the tree hierarchy as they can't be generic (IDEA-166840) 2017-01-20 15:51:24 +03:00
Dmitry Batkovich
de021824a4 java highlight usages in file: highlight usages of a method when its super method is from alternative jdk 2017-01-18 19:17:19 +03:00
Anna Kozlova
560b5b0265 provide accessibility and static modifier fixes for method references (IDEA-166707) 2017-01-18 16:55:38 +03:00
Vladimir Krivosheev
908b9bc0e1 cleanup — default implementation of languageLevelsChanged 2017-01-12 11:52:01 +01:00
Anna.Kozlova
f6364fbc68 method hierarchy with generics methods: fix adapting substitutor (IDEA-165969) 2016-12-28 14:20:06 +01:00
Roman Shevchenko
61e02864a5 [java] recognizes Java 9's 'MODULE' annotation target 2016-12-15 18:37:45 +01:00
Roman Shevchenko
6485b3003c Cleanup (logging category) 2016-12-15 18:36:40 +01:00
Tagir Valeev
c770886a92 PsiUtil#isIncrementDecrementOperation: loosen argument contract to nullable;
RefactoringUtil#isPlusPlusOrMinusMinus is replaced everywhere with PsiUtil#isIncrementDecrementOperation (IDEA-CR-16815)
2016-12-15 14:25:39 +07:00
Tagir Valeev
d8329c5638 Reduced copy-paste logic to check PsiElement being increment/decrement or used in write 2016-12-15 11:14:07 +07:00
Anna.Kozlova
9544b4c809 highlight inaccessible array component type (IDEA-165434) 2016-12-14 18:40:27 +01:00
Anna.Kozlova
cb0636749a @NotNull 2016-12-14 11:31:36 +01:00
Anna.Kozlova
2da5e59a9e check intersection types for inheritance inheritance 2016-12-14 11:31:36 +01:00
Tagir Valeev
0c0839a28f RedundantCastUtil#isCastToSerializable public method; used in LambdaCanBeMethodCallInspection; handlePredicate split into two methods (IDEA-CR-16756) 2016-12-14 12:37:21 +07:00
Anna.Kozlova
c376fa7e97 type arguments containment: ensure arrays are contained in type parameters with Serializable, Cloneable or Object bounds (IDEA-165295) 2016-12-13 17:46:28 +01:00
Anna.Kozlova
b02b6bef9d dedicated exception to flag cancellation (IDEA-CR-16749) 2016-12-13 15:47:37 +01:00
Anna.Kozlova
e2426846f4 external annotations: cancel annotation if user cancels dialog with annotation root suggestion (IDEA-165041) 2016-12-09 13:47:23 +01:00
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