Commit Graph
1291 Commits
Author SHA1 Message Date
Anna Kozlova 621795bbee isApplicability check based on pertinentToApplicability 2015-11-30 15:11:41 +01:00
Anna Kozlova 03936c3f8a generate java 9 api usage 2015-11-26 10:58:22 +01:00
Anna Kozlova 0191befbda enable inspection by default (IDEA-146085) 2015-11-26 10:58:22 +01:00
peter ab6ec15175 IDEA-148477 Handle AssertJ assertions in the same way as JUnit assertions 2015-11-26 08:28:04 +01:00
Anna Kozlova be2db1f940 new inference: report inference errors of containing call for lambdas 2015-11-20 21:47:13 +01:00
peter 2aa8b8c099 Revert: perform arithmetic operations during dfa (part of IDEA-143315) (ea61e3e9e6) 2015-11-18 16:14:35 +01:00
peter ea61e3e9e6 perform arithmetic operations during dfa (part of IDEA-143315) 2015-11-17 17:19:44 +01:00
peter 6293695598 dfa: don't store useless primitive != null facts 2015-11-17 17:19:43 +01:00
peter 66b5456707 IDEA-146131 @NotNull on parameters should only apply until reassignment 2015-11-17 17:19:43 +01:00
peter da043869c3 dfa: values of primitive types have unknown nullability 2015-11-17 17:19:42 +01:00
Roman Shevchenko d36fa738a4 [java] API for exploring annotation targets 2015-11-17 12:46:26 +01:00
Anna Kozlova fcf8e6f373 move inference error from element to method candidate to avoid overload method pollution; show inference error in the editor if applicability check was successful; register inference error if variable has incompatible upper bounds (IDEA-145106) 2015-11-16 10:05:50 +01:00
Dmitry Batkovich 6afbed569a quick fix which adds exception from field initializer to constructor signature (IDEA-142284) 2015-11-13 15:59:53 +03:00
Alexey Kudravtsev 1fbf3699e4 notnull 2015-11-12 17:04:34 +03:00
Alexey Kudravtsev 89b362ef96 IDEA-146946 2015-11-12 17:04:34 +03:00
Anna Kozlova f7b0a05fac dependencies: make feasible scope names; rephrase inspection warning (IDEA-146029) 2015-11-10 21:21:41 +01:00
Anna Kozlova a45937536a unchecked warnings: check inferred type against bounds for java > 1.8 (IDEA-147529) 2015-11-10 18:45:36 +01:00
Anna Kozlova c29f92472e inferred type check for raw constraints (IDEA-147529) 2015-11-10 18:45:36 +01:00
Anna Kozlova 911100e0b5 replace primitive == comparisons with .equals 2015-11-06 18:28:20 +01:00
peter 2b9e895827 IDEA-147534 Inspection "@NotNull/@Nullable problems" - "Require @NotNull fileds to be initialized explicitly", does not trigger when using @NonnullByDefault 2015-11-06 16:48:33 +01:00
Anna Kozlova f45da6777c EA-75706 - NPE: InferenceSession.getInferenceErrorMessage 2015-11-02 18:15:42 +01:00
Gregory.Shrago f9f9d626cd CachedValueManager: null containing files & strict dependency check for PSI 2015-11-02 19:47:11 +03:00
peter 7ca91d0b47 fix some cached value providers to not depend on synthetic elements (which have no reasonable modification count) 2015-11-02 09:12:28 +01:00
Anna Kozlova 020502588a javadoc inspection: provide add javadoc fix onTheFly (IDEA-147106) 2015-10-30 20:31:35 +01:00
Anna Kozlova 62cc281a3d disable lambda -> methref for qualified new expressions (IDEA-147054) 2015-10-29 19:40:11 +01:00
Dmitry Batkovich 6099df5fd6 WrapLongWithMathToIntExact intention forgotten case of boxed int 2015-10-29 18:32:26 +03:00
Dmitry Batkovich fc02e0b826 WrapLongWithMathToIntExact intention checks availability inside of intention (based on IDEA-CR-6351) 2015-10-29 18:18:55 +03:00
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