Commit Graph
3778 Commits
Author SHA1 Message Date
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
Anna.Kozlova 968d14a5db Revert testdata changes: Proper focus requests through the IDE focus subsystem. Part II. 2017-02-21 21:25:26 +01:00
Denis Fokin 556290b406 Proper focus requests through the IDE focus subsystem. Part II. 2017-02-21 21:06:22 +03:00
Anna.Kozlova 51dde4575e don't prefer packages in static imports (IDEA-168464) 2017-02-21 18:21:01 +01:00
Roman Shevchenko 98d2e29dfa [java] fixes Javadoc inspection false positive on @see tag (IDEA-168195) 2017-02-20 20:06:58 +01:00
Pavel Dolgov 1b5600e2c4 Java: Fixed the intention "Invert 'if' condition" in the case of nested 'if' without braces (IDEA-167957) 2017-02-20 14:36:31 +03:00
Roman Shevchenko 13d20c3859 [java] accepts annotations on modules 2017-02-20 11:52:06 +01:00
Tagir Valeev 909f89ab6e StreamApiMigration: disallow reassigning counting loop variable 2017-02-20 13:29:52 +07:00
Tagir Valeev 21b3f46f1a StreamApiMigration: collect(joining()): allow separator addition based on counting loop variable value 2017-02-19 18:37:49 +07:00
Anna.Kozlova 27ca3fe565 ensure enum constants resolved inside enum class
EA-83687 - assert: PsiEnumConstantImpl.resolveMethodGenerics
2017-02-17 19:37:21 +01:00
Anna.Kozlova 65ca530d2d process enum constant resolve separately (IDEA-162975)
EA-97195 - assert: PsiEnumConstantImpl.resolveMethodGenerics
2017-02-17 19:37:21 +01:00
Anna.Kozlova e794bbcb0f erasure return type when unchecked conversion was required deep inside (IDEA-168316) 2017-02-17 10:57:30 +01:00
Tagir Valeev b8c9f1a1e0 IDEA-168203 Follow-up: do not suggest if initializer may throw checked exception or accesses non-final variable 2017-02-17 12:47:39 +07:00
Tagir Valeev 4230df9ede StreamToLoop: VoidBlockLambdaFunctionHelper: recreate body if invalid (fixes EA-97022 - PIEAE: CompositePsiElement.getContainingFile) 2017-02-17 11:15:58 +07:00
Anna.Kozlova 71b7d9cbf3 don't duplicate type use annotations during copy of modifier lists (inspired by IDEA-166062) 2017-02-16 17:15:56 +01:00
Pavel Dolgov 0a85d2a207 Java: Remove duplicates from the completion list for argument of getMethod(). Simplified priority in the argument completion for getField() and getMethod() (IDEA-167250) 2017-02-16 16:00:47 +03:00
Roman Shevchenko ab3b33e067 [java] support for new module-info syntax and .class file format 2017-02-15 20:39:15 +01:00
Anna.Kozlova e0afb738e7 revert additional applicability checks due to captures inside subst 2017-02-15 13:38:12 +01:00
Tagir Valeev 024c0831ac IDEA-168203 StreamApiMigration: accept more standard collection constructors 2017-02-15 11:46:18 +07:00
Tagir Valeev fc3f0bb09d SimplifyStreamApiCallChainsInspection: convert IntStream.range(0, Math.min(limit, arr.length)).map(idx -> arr[idx]) to Arrays.stream(arr).limit(limit) and so on 2017-02-15 11:46:18 +07:00
Pavel Dolgov e4ec230e5d Java: Added priorities in the completion list for arguments of getField() and getMethod() (IDEA-167250) 2017-02-14 17:11:55 +03:00
Pavel Dolgov 8754155e85 Java: Added priorities in the completion list for arguments of getAnnotation() and getConstructor() (IDEA-167250) 2017-02-14 17:11:55 +03:00
Tagir Valeev 95ed6b3fd6 StreamApiMigrationInspection: use Stream.of, etc. to iterate explicitly created array 2017-02-14 14:27:23 +07:00
Anna.Kozlova de1520695c static via instance: hide parameters/classes qualified names (IDEA-168084) 2017-02-13 19:30:18 +01:00
Anna.Kozlova 770bd344ea ensure assignability for standalone expressions during applicability check (IDEA-159086) 2017-02-13 18:30:53 +01:00
Anna.Kozlova abfa41efdf applicability error: check inferred types by applicability substitutor (IDEA-167275) 2017-02-13 14:10:51 +01:00
Tagir Valeev 05ccacfa5f StreamApiMigration: check for label not pointing to the statement (Fix for EA-96734 - NPE: TerminalBlock.extractOperation) 2017-02-13 16:14:55 +07:00
Pavel Dolgov 24e71dc952 Java: Provide completion for arguments of Class.getAnnotation() and Class.getConstructor(), tests added (IDEA-167250) 2017-02-10 13:05:28 +03:00
Anna.Kozlova e88322304e inference: deep nested session based on existing initial substitution (IDEA-167713) 2017-02-10 10:04:15 +01:00
Dmitry Batkovich aa67d1e6e2 suggest wrap string expression with java.io.File when it's expected IDEA-167566 2017-02-09 12:19:11 +03:00
Anna.Kozlova e1cf56ba6f ensure change variable type to lambda parameter type is not suggested
EA-96540 - IOE: PsiJavaParserFacadeImpl.createTypeElementFromText
2017-02-09 10:14:07 +01:00
Anna.Kozlova 2fc0560169 inference: ensure don't walk through explicitly specified type 2017-02-09 10:14:07 +01:00
peter abeb3aae84 IDEA-167777 Code completion (ctrl+space) ignores static imports from interfaces. 2017-02-08 18:49:11 +01:00