Commit Graph
3810 Commits
Author SHA1 Message Date
Dmitry Batrak 4ae6919940 IDEA-169556 Join Lines inserts redundant space in some cases 2017-03-16 15:26:23 +03:00
Alexey Kudravtsev ee62f51f3e IDEA-169542 'Analyze Dataflow to Here' misses assignment to variables passed to anonymous classes 2017-03-16 14:57:24 +03:00
Anna.Kozlova d8c140ae13 parameter info: current method preselection when there are varargs overloading (IDEA-168649) 2017-03-16 11:15:51 +01:00
Tagir Valeev 55466aeef1 IDEA-169678 "Replace Optional.isPresent() condition with functional style expression" breaks code in case of 'Collection' return type 2017-03-16 11:22:15 +07:00
Anna.Kozlova d688a9a7a4 guess expected type like for completion if on the left side of assignment to functional expression which provides in this case no expected type (IDEA-169382) 2017-03-15 20:07:06 +01:00
Anna.Kozlova 02d25ac5f6 invert if: pass context to resolve to correct inner/local class (IDEA-169396) 2017-03-15 20:07:06 +01:00
Anna.Kozlova 2464532a56 fix testdata due to changes in defaults 2017-03-15 16:18:57 +01:00
Roman Shevchenko 2d8c4a0e3c [tests] better test for module annotations (IDEA-169410) 2017-03-15 14:32:41 +01:00
Dmitry Batrak 1a920de862 IDEA-169404 Don't use ellipsis for empty folded methods 2017-03-15 15:43:24 +03:00
Anna.Kozlova 9dfdd49e17 find class or interface to search the method: stop when accessible method is found even with static problem (IDEA-169504) 2017-03-15 10:41:42 +01:00
Anna.Kozlova 1e9f6352f2 make add cast fix available for vararg methods (IDEA-169541) 2017-03-14 14:17:14 +01:00
Pavel Dolgov 30039b5085 Java: Added quick fix tests for "MethodHandle/VarHandle type mismatch" inspection (IDEA-167318) 2017-03-14 13:21:13 +03:00
Tagir Valeev b2cd46bdeb StreamApiUtil: fix addition of map operation when object-object cast is involved 2017-03-14 13:19:47 +07:00
Anna.Kozlova 0dd24ab38d completion: take into account provided type arguments (IDEA-169478) 2017-03-13 17:18:18 +01:00
Anna.Kozlova 4e3b104169 fix completion context to collapse to diamonds (IDEA-169491) 2017-03-13 17:18:18 +01:00
Anna.Kozlova bb7868f450 diamonds: don't infer raw type when inference of a staticFactory failed
avoid blinking tests on overload resolution: make outer method call not applicable by inferring incomplete results like it's done for method calls
2017-03-13 14:16:44 +01:00
Alexey Kudravtsev da3d3a087e let "analyze dataflow to this" go through StringUtil.notNullize(String) 2017-03-13 13:57:42 +03:00
Dmitry Batkovich f4993e6f99 field initialization fix: add body for incomplete constructor 2017-03-13 13:25:41 +03:00
Bas Leijdekkers ca51903f4e make suppress intentions work in module-info.java files 2017-03-12 17:08:13 +01:00
Bas Leijdekkers d803164a12 make @SuppressWarnings work in module-info.java files 2017-03-12 17:08:13 +01:00
Bas Leijdekkers 5e8b71d109 Add module-info.java checking to "Declaration has problems in Javadoc references" inspection 2017-03-12 17:08:12 +01:00
Anna.Kozlova c719482b06 pull up inference errors when current call has no type parameters (IDEA-169316) 2017-03-09 15:04:34 +01:00
Anna.Kozlova 92d60ede85 enclosing instance check: don't check the inheritance for the class with extends/implements itself 2017-03-08 19:15:20 +01:00
Anna.Kozlova 7f4059541a precise rethrow: ensure unreachable catch sections do not participate in precise rethrow 2017-03-08 12:37:00 +01:00
Anna.Kozlova 0fa0b96dc6 no enclosing instance error for top level classes (IDEA-169088) 2017-03-08 12:37:00 +01:00
Anna.Kozlova 71cc26e25c precise rethrow with multiple exceptions in the try block (IDEA-169273) 2017-03-07 17:16:53 +01:00
Dmitry Avdeev 65ddb4c454 IDEA-164851 Inspection "redundant default parameter value assignment" does not work on all parame... 2017-03-07 18:14:58 +03:00
Anna.Kozlova e7edc56bc6 welcome mock jdk 9 (IDEA-168823) 2017-03-07 14:57:35 +01:00
Anna.Kozlova 2769981fb1 expand static import for all (IDEA-169239) 2017-03-07 14:57:35 +01:00
Anna.Kozlova 8cb5670877 missed constraint on lower bound of captured wildcard (IDEA-169083) 2017-03-07 11:42:25 +01:00
Anna.Kozlova 9c3ebf16aa method reference: include super substitutor into method reference substitutor when referenced method has no type parameters (IDEA-169134) 2017-03-07 09:15:29 +01:00
Tagir Valeev ed8f4efbef ExtractChainedMapAction: more specific message; Guava FluentIterable support; Collection.forEach test 2017-03-07 13:50:45 +07:00
Anna.Kozlova af3deb08fe overload resolution: ensure cleanup both branches of conditional (IDEA-169142) 2017-03-06 15:14:54 +01:00
Pavel Dolgov c1bb394630 Java: Implemented completion assistance for Var/Method Handle - suggest field/method name, autocomplete the signature (IDEA-167319) 2017-03-06 15:59:04 +03:00
Roman Shevchenko 74daf8d522 [java] improves "unsupported language level" message (IDEA-168859) 2017-03-06 11:27:27 +01:00
Anna.Kozlova 5328c5fa2c final field initialization: don't treat anonymous args as inner classes (IDEA-168651) 2017-03-06 10:28:45 +01:00
Anna.Kozlova effcbfe27b overload conflicts: assume that subsignature conflicts are already resolved when most specific are checked (IDEA-168894) 2017-03-06 10:28:45 +01:00
Tagir Valeev 504a5727d6 ExtractStreamMapAction: made stream-agnostic (with ability to extend to other chaining lambda APIs like Guava, RxJava, etc.); implemented for CompletableFuture; existing lambda is always preserved now. 2017-03-06 15:32:16 +07:00
peter 428cba1c1b let exact prefix items be the ones that have exact prefix as any lookup string, not just the main one (IDEA-168948) 2017-03-04 21:59:48 +01:00
peter 246d10ad26 IDEA-169028 Broken auto-import completion inside lambda 2017-03-03 17:12:02 +01:00
Pavel Dolgov aedc783354 Java: Avoid duplicates for shadowed members in completion list for arguments of reflection calls. Simplify building the list of method names with PsiClass.getVisibleSignatures() (IDEA-167250) 2017-03-03 12:04:52 +03:00
Anna.Kozlova bdb718f7cb fix visibility of private inner classes in annotations arguments of a sibling class (IDEA-168927) 2017-03-02 18:30:06 +01:00
Tagir Valeev ee38a5cfdd IDEA-168967 Intention to extract local variable created in stream operation lambda to separate stream step. 2017-03-02 16:25:35 +07:00
Tagir Valeev 1db9b2fd3f OptionalAssignedToNullInspection: added assignment test 2017-03-02 09:49:30 +07:00
Tagir Valeev 1b3489639b IDEA-168633 Warn if variable of type java.util.Optional is initialized with null 2017-03-01 16:41:41 +07:00
Tagir Valeev b5e80dfbd8 StreamToLoopInspection: disable elements which type is PsiIntersection type or PsiImmediateClassType which is not resolvable in outer context (fixes EA-97901); better diagnostic for cases like EA-97901 2017-03-01 12:37:17 +07:00
peter 2dcd8d24ba java completion: no case enumConstant suggestions where inapplicable (IDEA-168749) 2017-02-27 14:53:56 +01:00
Dmitry Batkovich 8b2f8362e0 fix test data 2017-02-22 22:08:50 +03:00
Alexey Kudravtsev 63c317943d one more test 2017-02-22 16:42:24 +03:00
Denis Fokin b9755cc7d1 Double semicolons cleanup 2017-02-22 12:45:41 +03:00