Commit Graph

547 Commits

Author SHA1 Message Date
Roman Shevchenko
636877d224 Generalize catch fix made aware of try-with-resources 2011-03-01 20:34:18 +01:00
Roman Shevchenko
618e0e3ac0 Surround with try/catch fix made aware of try-with-resources 2011-03-01 20:34:18 +01:00
Roman Shevchenko
77f94dbece Add exception to method signature fix made aware of try-with-resources 2011-03-01 20:34:18 +01:00
Roman Shevchenko
a5a7e6846a Add catch block fix made aware of try-with-resources 2011-03-01 20:34:17 +01:00
peter
5c6c1da682 prefer return 2011-02-28 18:29:30 +01:00
anna
db86efbbd4 format type after field creation from usage (IDEA-65996) 2011-02-28 15:18:41 +01:00
anna
70308b234e check for enclosing instance of type for top level extends type only (IDEA-65857) 2011-02-27 17:30:17 +01:00
anna
a89d18d0f0 safe varags: enable add safe varargs on constructor 2011-02-27 16:50:28 +01:00
Roman Shevchenko
70370a5456 Highlight uninitialized resource variable 2011-02-25 20:59:19 +01:00
Roman Shevchenko
a469762b6d Resolve in resource list tuned to not look forward 2011-02-25 20:59:19 +01:00
Roman Shevchenko
b2ec3c9263 Unused local variable inspection made aware of try-with-resources 2011-02-25 20:59:19 +01:00
peter
4291983cad IDEA-65810 Class completion: suggest most probable class in the specific context. 2011-02-25 12:37:16 +01:00
Roman Shevchenko
e4eacc4451 "Reuse variable declaration" no more suitable for resource variables 2011-02-24 21:35:40 +01:00
Roman Shevchenko
9e0bef7dcd Project Coin try-with-resource support, take 4 2011-02-24 20:02:33 +01:00
Roman Shevchenko
0a17b195bb Resource declaration and assignment conflicts highlighting 2011-02-23 21:04:42 +01:00
Roman Shevchenko
fdbaba14e1 Resource declaration conflicts highlighting 2011-02-23 21:04:42 +01:00
peter
725873b3ce IDEA-65811 "final" variant is not suggested but it should be 2011-02-23 15:13:41 +01:00
peter
40c073a073 uninitialized fields should be offered at least when initializing them 2011-02-23 15:13:40 +01:00
peter
b09a5bed9e IDEA-63641 Eliminate variable itself from autocomplete list 2011-02-23 15:13:39 +01:00
peter
5d9f4ef818 IDEA-50092 Code completion added unnecessary type arguments 2011-02-23 11:33:15 +01:00
peter
d07de05c10 IDEA-57487 Smart completion in cast operator inserts ill-formed type 2011-02-23 11:33:14 +01:00
peter
c13f0636c2 IDEA-58556 Make smart completion cast insertion aware of autoboxing 2011-02-23 11:33:13 +01:00
Roman Shevchenko
5fa72a60da Try-with-resource support: highlight unhandled exceptions from close() 2011-02-22 20:33:24 +01:00
Roman Shevchenko
0f2e1cd4f6 Try-with-resource support: variable usage inspection 2011-02-22 20:33:24 +01:00
Roman Shevchenko
2bc8375a90 Try-with-resource support: reuse variable quick fix 2011-02-22 20:33:23 +01:00
peter
55bc513149 IDEA-50627 Don't suggest uninitialized instance members in constructor when smart-completing 2011-02-22 18:58:44 +01:00
peter
261bfa77a9 in field type, don't suggest fields&methods (IDEA-65639) 2011-02-22 18:58:42 +01:00
peter
df58d454e5 IDEA-62188 Java: Basic completion doesn't suggest "default" keyword in switch construction 2011-02-21 21:05:57 +01:00
peter
0955db3442 restore field negation by ! 2011-02-21 21:05:55 +01:00
peter
ab4660c7ac IDEA-46653 Completion in parameter list should not insert a trailing comma if the following parameter is varargs 2011-02-21 21:05:54 +01:00
peter
d91749f4c3 IDEA-65234 Smart Completion: suggest most-probable method for delegation 2011-02-21 21:05:53 +01:00
Roman Shevchenko
e84bc3af06 Project Coin try-with-resource support, take 2 2011-02-21 19:55:45 +01:00
anna
67c44e47df forbid diamonds on non-parameterized types (javac should be fixed accordingly) 2011-02-21 18:36:16 +01:00
anna
2c27958238 smart completion: insert diamond iff no arg constructor is present or all constructors are generic free and no diamond inference errors occur 2011-02-21 18:36:16 +01:00
anna
e29bf9f509 diamonds inference: test data just-in-case 2011-02-21 15:03:31 +01:00
anna
5a5e84f3ef complex inference algorithm for diamond 2011-02-21 10:10:52 +01:00
Roman Shevchenko
686129f0fb Test data fixed 2011-02-19 20:22:04 +01:00
Roman Shevchenko
f2184f3f50 Multi-catch support: more highlighting 2011-02-19 14:48:41 +01:00
Roman Shevchenko
91e642ac49 Project Coin try-with-resources support (exception handling, part 1) 2011-02-18 15:37:38 +01:00
Denis Zhdanov
5fe8f15981 IDEA-65434 Ctrl+Shift+Enter bug in conditional blocks
Corrected situation when we complete statement with empty code block and code style is set to keep simple instructions in one line
2011-02-18 12:03:12 +03:00
peter
1cc5e6339b IDEA-65583:
insert import when completing a class reference with existing generics
on tab, replace the generics, if any
2011-02-17 20:54:09 +01:00
Roman Shevchenko
537ee9cfcb Substitution for PsiDisjunctionType 2011-02-17 18:48:49 +01:00
anna
0f9fced33c warn about possible heap pollution: annotates as SafeVarargs for final/static methods only (to be improved) 2011-02-17 16:53:04 +01:00
anna
84e7a9ae7a unchecked warnings as fair inspection 2011-02-17 09:48:44 +01:00
anna
ab784c95c2 unchecked generics array creation: in new expressions; detect generic signature in anonymous class creation 2011-02-17 09:48:43 +01:00
peter
d43faca81d IDEA-65252 Static nested classes are first proposal on values 2011-02-16 18:32:14 +01:00
peter
7414445e89 completion stats should care of class qualified names (IDEA-65112) 2011-02-16 18:32:12 +01:00
anna
87e7f6aa02 add warning "unchecked generic array creation for vararg parameter" 2011-02-16 09:48:39 +01:00
anna
5c24e5a3c6 redundant unchecked warning inspection 2011-02-16 09:48:38 +01:00
anna
04d3758e69 @SafeVarargs inspection: find all methods which can be annotated as 2011-02-16 09:48:36 +01:00