Commit Graph
1264 Commits
Author SHA1 Message Date
Anna Kozlova f7bed52e98 reject wrap fix if types are incompatible: fix AdvHighlightingTests 2015-10-28 19:45:34 +01:00
Anna Kozlova 543e5f3cdf remove this qualifier on anonym -> method ref fix 2015-10-28 19:45:32 +01:00
Dmitry Batkovich 713a1289c7 IDEA-146770 Suggest Math.toIntExact to convert long to int 2015-10-28 19:55:14 +03:00
Anna Kozlova b12b47c2ea ignore most specific check if parameter count were not matched at all
EA-75076 - AIOOBE: InferenceSession.isMoreSpecific
2015-10-28 16:05:07 +01:00
Anna Kozlova f894921d1c don't warn about unimplemented Iterator.remove for type parameters 2015-10-28 16:05:02 +01:00
peter 27271e9979 dfa: IDEA-146950 "<" expr is always false but "<=" is not 2015-10-28 14:02:36 +01:00
Anna Kozlova e27c654b20 silly assignment: ignore non-trivial casts involving primitives (IDEA-146830) 2015-10-27 19:35:20 +01:00
peter 488ef11fd4 dfa: support (i)++ (IDEA-146805) 2015-10-26 16:20:47 +01:00
Ilya Klyuchnikov d4f111844c index version up 2015-10-26 16:11:32 +03:00
Ilya Klyuchnikov 36c7bef21f do not analyze very complex methods (IDEA-137443) 2015-10-26 16:11:30 +03:00
peter a14ad4d037 IDEA-123870 Completion does not suggest expected methods after instanceof 2015-10-26 12:32:20 +01:00
peter a635bc5068 add checkCanceled during bytecode analysis indexing (IDEA-137443) 2015-10-22 19:14:07 +02:00
Anna Kozlova d9e1d4266b special color for final instance fields (IDEA-120374) 2015-10-16 12:10:26 +02:00
Anna Kozlova 4916734a24 reifiable type check fixed for local classes; instanceof check to use the same algorithm (IDEA-146352; IDEA-146351) 2015-10-14 17:05:36 +02:00
Anna Kozlova f29517700f highlight type parameter extends list errors: check once for all refs in refList not to repeat ourselves 2015-10-14 11:12:30 +02:00
Ilya Klyuchnikov 4902cb3015 IDEA-145968: index version up 2015-10-12 15:00:25 +03:00
Ilya Klyuchnikov 4fc4a5561c IDEA-145968: fixed @Nullable inference 2015-10-12 15:00:21 +03:00
Alexey Kudravtsev 51f801a299 IDEA-145783 2015-10-12 14:49:51 +03:00
peter af07f88aef IDEA-146122 Wrong 'can produce NPE' after comparing with enum constant 2015-10-12 13:33:38 +02:00
peter 2954927dca dfa: don't suggest to assert/surround-with-if possible NPEs on volatile fields, suggest to extract a local variable instead (IDEA-145668)
IDEA-CR-5544: reuse common quick fix code
2015-10-10 23:25:48 +02:00
Anna Kozlova 5b3174d8f2 EA-70595 - IAE: PsiType.isAssignableFrom 2015-10-09 18:35:23 +02:00
Dmitry Batkovich c442a2f175 guava type migration: filter(Class) and transformAndConcat() initial support 2015-10-08 15:23:31 +03:00
nik c4b0a9df56 PsiUtil: marked old 'isCompileTimeConstant' method as deprecated so we would be able to remove it later 2015-10-07 12:46:23 +03:00
peter f3c4a52ece dfa: don't suggest to assert/surround-with-if possible NPEs on volatile fields, suggest to extract a local variable instead (IDEA-145668) 2015-10-06 16:59:10 +02:00
peter f98d01be5e dfa: don't suggest to simplify boolean expressions with side effects (IDEA-145401) 2015-10-06 15:29:27 +02:00
peter 06c0f35c8f IDEA-146009 Good code is yellow: "Unboxing may produce NPE" inside forEach lambda 2015-10-06 15:24:36 +02:00
Roman Shevchenko 78acdfef1f [java] numeric literal underscores should not affect highlighting (IDEA-145942) 2015-10-05 12:55:06 +02:00
Anna Kozlova a0ce4457ae intention to replace assignment with void-call (IDEA-143069) 2015-10-01 20:11:59 +02:00
Dmitry Batkovich 64e2e26f6b tests fixed 2015-10-01 17:12:39 +03:00
Dmitry Batkovich deaac8ecf1 guava type migration: allows to convert guava's method chains using type migration 2015-10-01 15:34:37 +03:00
peter bbc043dc72 method contract cache shouldn't depend on the annotation which might become invalid 2015-09-29 21:04:54 +02:00
Anna Kozlova 090038722a EA-70589 - IOE: PsiJavaParserFacadeImpl.createExpressionFromText 2015-09-29 17:59:47 +02:00
Anna Kozlova 9b51b2a826 NPE 2015-09-28 15:12:09 +02:00
Anna Kozlova 993eb958cf offline view: don't run inspections to present offline results (IDEA-140742) 2015-09-25 20:39:42 +03:00
Anna Kozlova e46818ea50 invalid items in offline results: ensure whole method signature was saved (IDEA-140947) 2015-09-25 20:39:40 +03:00
Anna Kozlova 06eecb0b1d duplicate throws: ensure checks are proceed with correct type after first problem detected (IDEA-145542) 2015-09-25 15:43:12 +03:00
Alexander Zolotov 3ab37bc487 Do not complain about referencing test-only class on anonymous classes
This functionality is covered by checking PsiCallExpression elements
2015-09-25 15:29:52 +03:00
Alexander Zolotov 4135505a95 Remove unnecessary parentheses 2015-09-25 15:29:49 +03:00
Ilya Klyuchnikov ac3ee3b425 IDEA-144129: support for inferred negated contracts 2015-09-25 15:01:31 +03:00
Anna Kozlova b29779ed87 local can be final: don't ignore problems found in lambda body (IDEA-145500) 2015-09-25 13:53:40 +03:00
Anna Kozlova 9ebe7c76c9 unused library: bind parameter modifier lists with annotation classes (IDEA-145186) 2015-09-24 19:58:49 +03:00
Anna Kozlova dc5e1732f7 report redundant suppressions on line with suppression or on corresponding member if member annotated (IDEA-145472) 2015-09-24 13:09:22 +03:00
Alexey Kudravtsev cfc0226642 more checkCanceled 2015-09-21 16:32:28 +03:00
peter 07512c090a dfa cleanup and cache project 2015-09-19 13:01:21 +02:00
Anna Kozlova c26cc82486 notify about refs to foreign types (IDEA-145186) 2015-09-16 18:53:29 +03:00
nik 87effd54ac IncreaseLanguageLevelFix moved to java-impl to allow using JavaProjectModelModificationService from it 2015-09-16 18:06:35 +03:00
nik b558aba836 increase language level fix: don't invoke fix if file doesn't belongs to any module 2015-09-16 18:06:35 +03:00
peter beaaef4fc4 cache InferenceFromSourceUtil.shouldInferFromSource 2015-09-14 15:05:34 +02:00
Alexander Zolotov 74d1b638f6 TestOnly inspection should validate classes 2015-09-14 14:47:48 +03:00
Anna Kozlova 741804bb7e field can be local: don't suggest if used in this/super calls (IDEA-142287) 2015-09-09 21:04:56 +03:00