Commit Graph

310 Commits

Author SHA1 Message Date
anna d8748bb076 ambiguous method calls: conflict resolver, tests
(IDEA-67832; IDEA-67837; IDEA-67573; IDEA-57306;
 IDEA-57535; IDEA-57269; IDEA-57278; IDEA-57317)
2012-04-09 11:57:27 +02:00
anna 8fe1604bd1 show warning on type parameter declaration if it lead to multiple methods with same erasure (java7 only) 2012-04-08 14:05:51 +02:00
Alexey Kudravtsev 713aa0a2b0 IDEABKL-3891 2012-04-06 19:59:08 +04:00
anna dc5c191afc ambiguous method calls: conflict resolver, tests
(IDEA-67919; IDEA-67863; IDEA-67920;
 IDEA-67831; IDEA-67833; IDEA-67674;
 IDEA-67587; IDEA-57646; IDEA-57407;
 IDEA-57279; IDEA-57296; IDEA-57297;
 IDEA-57316; IDEA-57331)
2012-04-06 11:55:43 +02:00
anna 27b6395f89 fix inference for object type arg 2012-04-05 19:08:45 +02:00
anna 9242d62213 good code is red: wildcard should check the bound if any in order to prove difference (IDEA-63291) 2012-04-05 19:08:45 +02:00
anna b706c5284e testdata for IDEA-74899 2012-04-05 19:08:44 +02:00
anna 5e682f1319 good code is red: take bounds into account during types agree (IDEA-76283) 2012-04-05 12:12:38 +02:00
anna dab1c48d59 additional testdata for inaccessible type params members from IDEA-66305 2012-04-05 09:57:05 +02:00
anna 3156fab144 jdk7 incompatibility: red good code is green: always check signature erasure equals for jdk7 (IDEA-66311)
add checks for param erasure for jdk6
2012-04-05 09:57:04 +02:00
anna db78c2d427 enable create enum constant from switch label statements (IDEA-84054) 2012-04-04 16:38:00 +02:00
anna a4e23d3546 good code red: do not allow unchecked conversions on deeper wildcard levels (IDEA-80386) 2012-04-03 19:19:44 +02:00
anna 6719c86450 good code red: do not create ? super Object constraint as nothing would match (IDEA-77991) 2012-04-03 19:19:43 +02:00
anna 0a99721ccb substitution should not expand captured unbounded type (IDEA-79360) 2012-03-30 11:11:07 +02:00
anna 6ea7222b14 ensure that cast won't be marked as redundant for jdk7 (IDEA-82002)
(is valid though for jdk6)
2012-03-29 20:04:23 +02:00
anna 8c852b28d5 unchecked warning: argument type doesn't depend on call substitutor (IDEA-82605) 2012-03-29 20:04:22 +02:00
anna 1563df17f1 red code is green wildcard problems ++(IDEA-66750;IDEA-75178;IDEA-73377) 2012-03-29 15:17:24 +02:00
anna 24d2eeb3d0 service to detect java version;
highlight access to private class members according to java version used (IDEA-83045)
2012-03-29 11:06:43 +02:00
anna 09246f5482 process captured wildcards (IDEA-82913) 2012-03-28 18:01:15 +02:00
anna b68e03ec53 hide iterate intention for non expression statements (IDEA-83625) 2012-03-28 16:37:48 +02:00
anna bc7e569fa1 covariant return types: difference between java7 & java6 (IDEA-83599) 2012-03-28 13:27:06 +02:00
anna b4c42eb076 IDEA-83600: pull up for local classes 2012-03-28 13:27:05 +02:00
Roman Shevchenko 2a99d489af IDEA-80590 (hint to ignore unused for-each parameters and resource variables) 2012-03-28 00:15:10 +02:00
anna caf67194d7 IDEA-82857 fix javadoc during delegate with default parameter (cherry picked from commit d6ac82f) 2012-03-21 18:01:59 +01:00
Roman Shevchenko 81f0d72e8f [ann] IDEA-82436 (check unclosed non-empty char literals) 2012-03-15 19:08:59 +01:00
anna 08585afbb4 deprecation inspection: check non default constructors used in anonymous classes (IDEA-82794) 2012-03-15 11:29:56 +01:00
anna 2c7d491f4b incorrect default deprecation is used (IDEA-82721) 2012-03-14 17:24:57 +01:00
anna cf78075c97 allow override method suggestions on method name only 2012-02-29 12:02:19 +01:00
anna eab8b8b456 make create field from parameter available on the method name 2012-02-29 10:38:30 +01:00
anna d2bacb97be collapse fqn in intention text (IDEA-81839) 2012-02-24 16:50:25 +01:00
anna 9c91d9374f add convert switch to if for invalid switch types (IDEA-81580) 2012-02-23 11:50:19 +01:00
Bas Leijdekkers 0a71148672 Improve quickfix to replace += operator with StringBuilder on left hand side with append() call
now works on java.lang.Appendable and splits concatenated strings into separate append calls
2012-02-22 16:57:49 +01:00
anna 7e2db60abd create constructor parameter from field: suggest to choose fields to create parameters from (IDEA-76417);
insert parameters in "fields" order (IDEA-81634)
2012-02-21 20:56:16 +01:00
anna d47214a173 testdata fixed to exclude copyright 2012-02-21 14:07:38 +01:00
anna 5bffdd267c testdata fixed to exclude copyright 2012-02-21 13:49:39 +01:00
anna 1188b58704 do not loose array dimension expressions when converting array types; move caret and selection only in case when no expressions were detected 2012-02-21 12:18:20 +01:00
anna 2471e079a8 rename: override instead of implement for non-abstract methods 2012-02-21 12:18:19 +01:00
Bas Leijdekkers 0d73811b02 EA-33799 (IOE: PsiJavaParserFacadeImpl.createExpressionFromText) 2012-02-18 15:08:14 +01:00
anna 8e7b3a443c add explicit type parameters available for conditional expr (IDEA-1179) 2012-02-17 21:38:34 +01:00
anna a829ba2568 ignore parameter for foreach (IDEA-72671) 2012-02-14 18:54:07 +01:00
anna 3fbf03363e testdata fixed 2012-02-14 10:36:59 +01:00
anna 86518ea411 do not highlight unused foreach parameter (IDEA-72671) 2012-02-13 18:41:26 +01:00
anna ba961d59ad highlight error: access to a private field from a class annotation is not possible 2012-02-10 16:49:46 +01:00
anna cb0442de53 IDEA-76599 Quickfix to change a double literal to a float literal 2012-02-10 14:15:09 +01:00
anna d6fbbdfe30 allow to override non-abstract methods (IDEA-69772) 2012-02-09 18:51:13 +01:00
anna b13cd651dc do not insert initial method comments in delegate with default param value (IDEA-81106) 2012-02-09 18:51:11 +01:00
anna 45654bcffd change signature from usage: new param place: provide reverse based signature transformation when not the same (IDEA-70552) 2012-02-09 18:51:11 +01:00
Anna Kozlova 24ec63e74e iterate over: correct offset to detect template applicability 2012-02-02 21:17:52 +04:00
Roman Shevchenko f214f99337 [ann] IDEA-80335 (more precise check for exceptions from AutoClosable types) 2012-01-26 20:33:48 +04:00
anna 2679bf2acb suggest to delete type arguments when they are not expected (IDEA-79300) 2012-01-18 11:47:48 +01:00