Commit Graph

4330 Commits

Author SHA1 Message Date
Anna Kozlova
4518420113 don't correct substitution if not applicable, e.g. for unresolved functional types 2015-08-18 19:15:37 +02:00
Anna Kozlova
5ab790eaac suppress single unused parameter 2015-08-18 19:15:28 +02:00
Anna Kozlova
9ce5f869de pull up: don't prepare for interface if pull up to class (IDEA-144043) 2015-08-18 19:15:25 +02:00
Anna Kozlova
a1601f1d22 deoptimize so overriding methods from object marked as abstract won't get lost (IDEA-143141) 2015-08-18 12:34:42 +02:00
Anna Kozlova
c97ce52826 formal varargs not accessible check (jls) 2015-08-18 12:34:40 +02:00
Anna Kozlova
d016c911ec extract enum: more accurate already migrated condition (IDEA-143251) 2015-08-18 12:34:37 +02:00
Anna Kozlova
67bfb2b357 inline local with rename conflicts inside lambda (IDEA-143340) 2015-08-18 12:34:35 +02:00
Anna Kozlova
0da30526fd error for not accessible types mentioned by inferred functional type (IDEA-143417) 2015-08-18 12:34:31 +02:00
Anna Kozlova
676c477fab overload resolution: symmetry (IDEA-143310) 2015-08-18 12:34:29 +02:00
Anna Kozlova
bbda6d8b02 fix operation assignment (IDEA-143986) 2015-08-17 14:54:35 +02:00
peter
159b1363c5 get rid of Java15CompletionData and Java18CompletionData 2015-08-17 10:16:48 +02:00
peter
540b538a61 java completion: rewrite throws/default keyword suggestions in methods 2015-08-17 09:28:52 +02:00
peter
2e7061420f java completion: rewrite else/catch/finally keyword suggestions, add tests 2015-08-17 09:06:23 +02:00
peter
375bdad569 fix Collections.emptyMap not being suggested in completion if jdk8 is used 2015-08-16 17:55:05 +02:00
peter
046fc164b4 infer method type arguments from context in basic completion 2015-08-16 17:55:04 +02:00
Anna Kozlova
87e70fa5cb replace duplicates on extract method with signature change: use folded values if present (IDEA-143613) 2015-08-14 19:37:45 +02:00
Anna Kozlova
7dc4a1e1b3 introduce parameter: ensure correct scope is picked in case of anonymous class (IDEA-143435) 2015-08-14 19:37:39 +02:00
Dmitry Batrak
decd330820 IDEA-141852 Quick documentation doesn't support @value tag without hash preceding variable reference 2015-08-14 15:52:10 +03:00
peter
16d92229b1 IDEA-143807 Incorrect smart completion inside a cast 2015-08-13 18:22:55 +02:00
peter
a509139159 IDEA-143839 No smart completion in method return type 2015-08-13 18:22:54 +02:00
peter
ec71fb4d28 IDEA-143786 Switch over enum completion - do not prefer just typed variants 2015-08-13 18:22:52 +02:00
Anna Kozlova
8c2a945f80 testdata for IDEA-143390 2015-08-12 08:14:31 -07:00
Anna Kozlova
c7dfe22f31 extract method: enable duplicates inside inner classes called methods from outer (IDEA-143504) 2015-08-11 06:43:04 -07:00
Yaroslav Lepenkin
8eea8eb13f Do not reformat parent code block on "complete current statement" action (IDEA-102479) 2015-08-11 14:39:13 +03:00
Eugene Zhuravlev
2e2d02473d when parsing signatures, create GenericBoundUsage only for classes mentioned in signature bounds;
mark dependencies caused by GenericBoundUsage only in chunk being compiled and all chunks that depend on it recursively
2015-08-10 12:27:31 +02:00
Bas Leijdekkers
59f25f9789 generate default method and improved text & description for "delegated method with default parameter value" intentions 2015-08-08 21:54:24 +02:00
Yaroslav Lepenkin
4c86444fc6 When doing smart reformat, do not build all blocks, build only blocks around affected range. This will enhance postponed formatting performance (IDEA-143046 Slow postponed formatting in large files) 2015-08-04 18:00:44 +03:00
peter
0c28099a15 IDEA-143014 Wrong 'can be null' warning when assignment is done inside if condition 2015-07-31 13:28:36 +02:00
Alexey Kudravtsev
99a0bede9f converted to walking visitor 2015-07-30 14:56:54 +03:00
Dmitry Batkovich
ea47e2fe30 GuavaFluentIterableInspection: visitor moved to checkFile() + fixed findContainingMethodReturnType() method when expression is placed inside lambda expression 2015-07-29 15:12:59 +03:00
nik
ef1f9f2d46 fixed usage type for static fields and methods (IDEA-143229) 2015-07-29 12:13:08 +03:00
Anna Kozlova
1df6b8e711 new inference: ensure erased target type if substitutor was raw (IDEA-143183) 2015-07-29 10:02:59 +02:00
nik
3338d30023 add dependency on external library quick-fix: API simplified, duplicated code removed 2015-07-29 08:31:13 +03:00
Anna Kozlova
b5d792a550 method duplicates: check all outer classes for hierarchy inheritance not to make resulted method static 2015-07-27 14:20:21 +02:00
Alexey Kudravtsev
59e0751e2c cleanup 2015-07-24 16:54:15 +03:00
peter
d2056e2d52 IDEA-143075 Autocompletion not working when an inner compiled enum is named "v1" 2015-07-24 12:56:29 +02:00
Roman Shevchenko
474f43a14b [tests] Java inheritance search test refactored 2015-07-23 21:08:30 +02:00
Roman Shevchenko
fe7ba298f6 Merge remote-tracking branch 'origin/master' 2015-07-22 18:26:08 +02:00
Roman Shevchenko
cff7efd5d1 [java] since Java 9, underscore identifiers are completely prohibited (IDEA-132278) 2015-07-22 18:23:28 +02:00
Roman Shevchenko
f7f0a5c0c4 [java] adds support for Java 9's improved try-with-resources (IDEA-140266)
PSI, parser, highlighting, exception analysis, control flow, completion.
2015-07-22 16:28:39 +02:00
Anna Kozlova
3a9f429d3e method references on lambda parameters for incomplete code (EA-66008 - assert: InferenceSession.collectApplicabilityConstraints) 2015-07-22 12:34:09 +02:00
Anna Kozlova
7677f61dc5 invalid annotation type detection based on type element (IDEA-142884) 2015-07-21 18:36:10 +02:00
Roman Shevchenko
8d620bf87f Merge remote-tracking branch 'origin/master' 2015-07-21 09:17:29 +02:00
Anna Kozlova
a94e79baff generate constructor: place varargs from base constructor as last parameter (IDEA-142811) 2015-07-21 08:51:12 +02:00
Anna Kozlova
9501af04f5 decode: don't qualify 'ambiguous' reference if qualifier is available through inheritance (IDEA-142703) 2015-07-21 08:51:08 +02:00
Anna Kozlova
75e3086fb2 lambda -> meth ref: reject replacements with invalid qualifiers (IDEA-142695) 2015-07-21 08:51:06 +02:00
peter
1b70adbfd4 IDEA-137195 Not annotated constant fields should be treated as Nullable or NotNull when static code analysis is able to prove Nullable/NotNull 2015-07-20 17:20:58 +02:00
Roman Shevchenko
32a6761ede Cleanup (i18n; text corrected) 2015-07-20 12:06:25 +03:00
Roman Shevchenko
1de7a48a49 Merge remote-tracking branch 'origin/master' 2015-07-19 15:15:49 +03:00
Roman Shevchenko
de416d4f7f Cleanup (test moved to a correct location) 2015-07-18 23:13:56 +03:00