Commit Graph
1319 Commits
Author SHA1 Message Date
Ilya Klyuchnikov a1e1465d52 new purity analysis 2015-12-30 13:22:42 +03:00
Anna Kozlova ec2128de5a disable add type cast fix for non-denotable types (IDEA-149787) 2015-12-29 16:46:58 +01:00
Anna Kozlova 72f0bc5e0c replace with foreach: add option to replace foreach statements with statement lambda (IDEA-121659) 2015-12-29 16:46:58 +01:00
Anna Kozlova 242cd356a7 method reference: additional diagnostics for invalid method references (IDEA-149688) 2015-12-29 16:46:58 +01:00
Alexey Kudravtsev 86b2b222ba IDEA-149645 "Access can be tightened" inspection should have option for avoiding synthetic accessors 2015-12-25 18:44:19 +03:00
Alexey Kudravtsev feb97a1977 cleanup 2015-12-23 16:57:38 +03:00
Alexey Kudravtsev cd72b8d540 IDEA-149684 'Declaration access can be weaker' inspection incorrectly suggests to make an inner class private even if it is used in generic parameters of the outer class 2015-12-23 16:57:38 +03:00
Alexey Kudravtsev ec51643dff respect "do not suggest private for inners" in case of anonymous class 2015-12-23 16:57:38 +03:00
peter b80e509282 a bit of javadocs for bytecode inference code 2015-12-22 17:50:10 +01:00
Alexey Kudravtsev 221b31b038 merge AccessCanBeTightened and VisibilityInspection 2015-12-15 14:17:07 +03:00
Alexey Kudravtsev 76933f00fa magic string replaced with named constant 2015-12-14 18:43:31 +03:00
Anna Kozlova 13fac3d5e2 extract functional: convert lambda to method reference when possible (IDEA-149173) 2015-12-14 10:30:48 +01:00
Alexey Kudravtsev 422bf84293 review followup 2015-12-11 13:15:10 +03:00
Anna Kozlova 132bb137a1 don't show error on method reference if functional expression is located inside invalid context without target functional type 2015-12-10 19:52:16 +01:00
Anna Kozlova 3f72d428a8 method references: show candidates if overload resolution failed (IDEA-148974) 2015-12-10 17:01:55 +01:00
Alexey Kudravtsev c351f8a12b changed hardcoded group 2015-12-10 16:46:10 +03:00
Alexey Kudravtsev 1eb7ae8b0f tighten access inspection 2015-12-10 15:59:54 +03:00
Anna Kozlova dd38082794 least upper bound: pull unbounded wildcard up so types Number & Comparable<? extends Number & Comparable<?>> are produced instead of Number & Comparable<? extends Comparable<?>>
inferred type in bounds check cleanup: accept that inference result is not within its bounds and give the inference the second chance
2015-12-09 11:25:11 +01:00
Alexander Zolotov 7cb3d001e8 Allow to use @TestOnly symbols inside @TestOnly fields (IDEA-148905) 2015-12-09 14:36:12 +10:00
peter 0ddd1243b9 honor vararg calls when inferring contracts (IDEA-148862) 2015-12-03 17:32:53 +01:00
Anna Kozlova c16a53a9fb do not open capture when method call type is calculated 2015-12-03 12:18:25 +01:00
Anna Kozlova dfe29a3a50 getSuperTypes: reuse correctType and capture (following IDEA-CR-7195) 2015-12-02 15:42:02 +01:00
Anna Kozlova 3a669178f5 do not open captured wildcards on substitution; don't capture wildcards on getExtendsTypes for type parameters and their consequences 2015-12-02 10:17:29 +01:00
Anna Kozlova b9990696d3 new inference: don't search for wildcards inside type arguments 2015-12-02 10:17:29 +01:00
Bas Leijdekkers a20691e9c4 IDEA-26291 (Small error in "variable is assigned to itself" inspection) 2015-12-01 19:11:41 +01:00
Alexey Kudravtsev e3f7885bf7 EA-75914 - CCE: FindSuperElementsHelper$.process 2015-12-01 12:55:41 +03:00
Roman Shevchenko a1f7aa76fb [java] highlighting for incorrect first statement in switch (IDEA-148514) 2015-11-30 18:48:32 +01:00
peter 9d2abd7276 IDEA-148657 "if (false)" quickfix text is meaningless 2015-11-30 16:26:38 +01:00
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