Commit Graph
1336 Commits
Author SHA1 Message Date
anna e8ef5ea7d7 allow to add static import for containing class when it already contains imported members (IDEA-96156) 2013-04-25 14:14:51 +02:00
Roman Shevchenko 44e359d268 IDEA-106119 (more rigorous check for "this" qualifier) 2013-04-24 17:01:31 +02:00
anna 3d9008c296 add single static import: process nested references (IDEA-94951) 2013-04-24 16:27:01 +02:00
anna 3433d392a3 method applicability: do not check erased types if method was not called on raw type (IDEA-104992) 2013-04-24 14:14:49 +02:00
anna 516a76fa3b provably distinct: ? extends A should be provably distinct from Object until A is not an Object (IDEA-105695) 2013-04-23 15:35:49 +02:00
anna d67a21f788 redundant cast: ignore for lambda casts with serializable/intersections (IDEA-105839) 2013-04-22 18:00:30 +02:00
anna 11f81e0be7 accept this refs inside anonymous classes in java 8 interfaces (IDEA-105892) 2013-04-22 15:50:32 +02:00
anna 566ef9c3ab check for upper bound in wrapped wildcard (IDEA-105846) 2013-04-22 15:50:31 +02:00
anna 47d6ba424e create subclass: restore caret position after delegate constructors are inserted (IDEA-105566) 2013-04-17 15:58:51 +02:00
Roman Shevchenko aec23d1dab IDEA-105110 (check repeatable annotation container applicability) 2013-04-16 16:27:09 +02:00
Roman Shevchenko 8110c941f6 Repeatable annotations highlighting text corrected 2013-04-16 16:27:08 +02:00
anna 33f3792dc3 default methods in java 8: suggest to mark interface methods with body with default/static (IDEA-105420) 2013-04-16 11:19:48 +02:00
anna b4c0420a4d no enclosing instance: sibling static nested class should be also be checked (IDEA-105004) 2013-04-11 17:02:09 +02:00
anna 38d197e704 static method calls should not be treated as inherited (IDEA-105021) 2013-04-11 17:02:08 +02:00
anna f622b3c704 annotation interfaces: highlight methods which override public/protected methods of Object/Annotation (9.6.1. Annotation Type Elements) 2013-04-11 13:23:50 +02:00
anna 2eb25bff4e disable override object/annotation methods in annotation interface 2013-04-11 13:23:49 +02:00
anna 42763f9275 IDEA-105101 Java: bad code is green: cyclic annotation element types
(JLS 9.6.1. Annotation Type Elements)
2013-04-11 13:23:48 +02:00
anna 8e140d8df7 javadoc: append enum ordinal in quick doc (IDEA-104906) 2013-04-10 16:27:05 +02:00
Roman Shevchenko 52c17b2657 Type annotations on C-style arrays are recognized now even better 2013-04-05 22:28:42 +02:00
Roman Shevchenko 218fd54bf2 Type annotation in wildcard and class reference types; more tests 2013-04-05 21:08:12 +02:00
anna ae8ab9589e IDEA-103758 2013-04-05 17:02:57 +02:00
anna f9c121d810 generate setter prototype from field: take context into account to gic resulted method correct parameter type (IDEA-104592) 2013-04-04 20:37:58 +02:00
Roman Shevchenko fc602c65bc PsiTypeElement.getType() fixed 2013-04-04 19:38:46 +02:00
Roman Shevchenko 3d75dc6664 IDEA-96664 (highlighting of Java 8 repeating annotations) 2013-04-04 19:38:46 +02:00
Roman Shevchenko 79f04f5709 IDEA-96664 (highlighting of Java 8 repeating annotations) 2013-04-03 16:19:42 +02:00
anna c14be903d9 constant expressions check: discard polyadic expressions of non-primitive/Strings types (IDEA-104347) 2013-04-03 10:52:04 +02:00
anna b75d4c139f EA-45389 - assert: SimplifyBooleanExpressionFix$ExpressionVisitor.visitPolyadicExpression 2013-04-02 20:08:51 +02:00
anna 497644d544 method refs: collect substitution from type parameter's extends list (IDEA-104314) 2013-04-01 20:36:27 +02:00
Roman Shevchenko 8bb33ccdca Type annotations on C-style arrays are recognized now 2013-03-31 23:13:14 +02:00
anna 7cb3c66d87 type parameter referenced from static context error (IDEA-104160)
(cherry picked from commit ac98afef2ab67f2b548e6723e63b3b9752bf82f5)
2013-03-29 20:10:02 +01:00
anna 141ef05254 testdata for IDEA-104100
(cherry picked from commit 411a14aa13d2b77fb37adbb2f00c7d1dcff2efdf)
2013-03-29 20:09:57 +01:00
anna cb99f86169 AIOOBE IDEA-103980
(cherry picked from commit 235e1ab6ff11856c91e6c5afded3209879ac473e)
2013-03-27 19:02:37 +01:00
anna 09f4a50b16 prevent diamonds in reference parameter list other than <> -> invalid PsiDiamondType in substitutors
(cherry picked from commit 4f7cc7a)
2013-03-27 19:02:35 +01:00
anna f43401e162 IDEA-103760 2013-03-27 09:20:02 +01:00
anna b3eb62d36e generate double hashCode: simplify expr (IDEA-103687)
(cherry picked from commit 8796e6596a3e3e142b072d405bbf37071b810c5c)
2013-03-26 21:43:14 +01:00
anna b95a271d12 generate getter/setter: allow public getter for public enum (IDEA-103718)
(cherry picked from commit bb95544d55937ef04d739a4c01839280a4eefb67)
2013-03-26 21:43:06 +01:00
Roman Shevchenko a45a48cdac IDEA-103114 ("Surround with try-with-resources" fixed to not lose last declaration element) 2013-03-25 18:30:12 +01:00
Roman Shevchenko 992d208806 IDEA-103576 (correct processing of unhandled multi-catch exceptions) 2013-03-24 11:24:52 +01:00
Roman Shevchenko d07261265b IDEA-103117 (completion after annotated wildcard parameter) 2013-03-21 20:21:57 +01:00
anna 8f5515b2d6 create enum from usage: do not insert extends Enum list; disable create class from usage when class should extend final or enum (IDEA-103480)
(cherry picked from commit b2baa7ff649c365d6d57bf873e9fd015ccc32809)
2013-03-21 10:40:52 +01:00
anna ec801909f9 graph inference: take into account present type args during graph inference (IDEA-103023)
(cherry picked from commit e9e05d9d47210f6e315cef233f8b5b33192df7fc)
2013-03-21 10:40:44 +01:00
anna a1753089fe lambda -> method ref: disable for inapplicable target methods (IDEA-103369)
(cherry picked from commit c05e901232c17e1a93a7024e5d7262d6a324c5e3)
2013-03-21 10:40:42 +01:00
Roman Shevchenko 4db079dbbe IDEA-91596 (test case) 2013-03-19 20:51:57 +01:00
anna 5b83d0d343 allow to implement and override default methods in java 8 (IDEA-103180) [roma]
(cherry picked from commit 6fc2a889a092365431b92d7f03b8d2057a82d8be)
2013-03-15 22:04:47 +01:00
anna 664fb24186 create field from usage: insert braces at selection end (IDEA-102716)
(cherry picked from commit 7eba27508d6e74cad0841013c313c05f6d96f17e)
2013-03-15 21:39:50 +01:00
anna 8ed5a8175f red code is green: impossible to have 2 signatures with same signature and different primitive return types (IDEA-102866)
(cherry picked from commit c4093d0e8a1021f80fafb3c6b1fc35388da46ac6)
2013-03-15 21:38:19 +01:00
anna 7f1f607d98 generate public getter/setter for abstract classes (IDEA-102872)
(cherry picked from commit 61685b9d890fce99c050e1b98261527b7a0e9363)
2013-03-15 21:38:02 +01:00
Roman Shevchenko 75f112bc0d IDEA-54393 (type element tree generation reworked)
Fixes: marking of generated elements, annotated types
2013-03-14 21:04:02 +01:00
Roman Shevchenko 29f20c9421 Correct highlighting of annotations in new expressions 2013-03-13 13:26:19 +01:00
Roman Shevchenko 9daf85536c Parse annotations in new expressions 2013-03-13 11:15:41 +01:00