Commit Graph
4095 Commits
Author SHA1 Message Date
Anna Kozlova 553ad77e46 overload resolution: reject java 8 varargs methods when they are checked by fixed arity and number of parameters doesn't match 2015-04-24 20:33:40 +02:00
Anna Kozlova 6be67cfec0 use interface where possible: rebind type params (IDEA-139615) 2015-04-24 20:33:39 +02:00
Anna Kozlova 511a356788 reifiable types: ensure that generic types with only all type params as unbound wildcards are treated as reifiable (IDEA-139577) 2015-04-24 20:33:37 +02:00
peter c577be8f4f dfa: correctly handle ""== Boolean.TRUE/FALSE" 2015-04-24 19:16:44 +02:00
Yaroslav Lepenkin 3f5ec7cc68 revert e86902e 2015-04-24 18:48:27 +03:00
Yaroslav Lepenkin e86902ebcc Do not wrap first parameter in expression list 2015-04-24 15:52:51 +03:00
Anna Kozlova b61e8bdb39 access static via instance: ensure type params are attached to the class reference (IDEA-139440) 2015-04-24 13:46:13 +02:00
Anna Kozlova e5097dfc24 lambda -> method ref: ensure that capture is checked according to the param ref; avoid wildcards in method ref qualifiers (IDEA-139529) 2015-04-24 13:46:11 +02:00
Dmitry Batkovich 36c9328f8d StaticPseudoFunctionalStyleMethodInspection: handles filter(list, classAsFilter) and find() with default value 2015-04-23 14:59:45 +03:00
Dmitry Batrak e01b4da393 IDEA-138967 \unnnn notation doesn't work in quick docs 2015-04-22 11:10:54 +03:00
Yaroslav Lepenkin 4e78447b73 Options: Place new line after '(' and "Place line before ')' works only if parameter list is wrapped. 2015-04-21 18:27:17 +03:00
peter 466bd18aff add hardcoded contracts for Guava checkArgument/checkState (IDEA-126005) 2015-04-20 17:06:34 +02:00
peter 96b1e4a3df IDEA-139392 "Method Invocation may produce NPE" warning after call to assertThat().isNotNull from Google Truth framework 2015-04-20 17:06:33 +02:00
Anna Kozlova f0fae34076 intersection types in cast: provide "delete repeated interface" fix 2015-04-20 10:19:24 +02:00
Anna Kozlova f5cec5e24a intersection in cast type: repeat interface, different parameterization checks 2015-04-20 10:19:22 +02:00
Anna Kozlova 2318a3a58c capture conversion: collect all type parameter's bounds during capture conversion; make sure collected upper bound is used after capture type is normalized 2015-04-20 10:19:20 +02:00
Anna Kozlova 232b479b23 testdata for IDEA-139318 2015-04-16 20:30:37 +02:00
Anna Kozlova b044c4fcee extract method: do not pass redundant parameters if extracting from lambda body (IDEA-139292) 2015-04-16 20:30:35 +02:00
Anna Kozlova 3e57002e28 delete imports on safe delete of class (IDEA-139288) 2015-04-16 20:30:33 +02:00
Anna Kozlova 09f4d7ea1f detect expected type by parent for nested array initializers (IDEA-139280) 2015-04-16 20:30:31 +02:00
Anna Kozlova fd11949634 new inference: accept inferred equals bounds even when additional constraints lead to failure to get more appropriate error message (IDEA-139275) 2015-04-16 20:30:29 +02:00
peter a577297f81 a bombed test for IDEA-126629 java.io.Closeable is not AutoCloseable in some cases 2015-04-16 19:11:48 +03:00
peter ce9914e697 IDEA-139253 TYPE_USE @Nullable-Annotations don't work correctly with arrays 2015-04-16 19:11:46 +03:00
peter 51e23e6063 IDEA-139301 "Constant conditions & exceptions" flaggs nullable expression when implementing a method returning void 2015-04-16 19:11:45 +03:00
peter 6c8750291f IDEA-124359 Add Inspection for detecting nullable values passed into Optional.of()
test that it correctly works with Guava
2015-04-14 23:12:39 +03:00
peter 1b7a05e26f IDEA-138553 Inspection for usages of Optinoal.ofNullable() for values known to be null or non-null 2015-04-14 23:12:38 +03:00
peter ecab324ae0 dfa: overriding @NotNull has precedence over super method @Nullable 2015-04-13 18:51:22 +03:00
Yaroslav Lepenkin 34567094ca Added simple way of detecting if line starts with continuation indent: we check whether before current line there was opened and not closed left parenthesis 2015-04-10 19:46:58 +03:00
Anna Kozlova 4ee27fecce can complete normally for nested try-with-resources (IDEA-138961) 2015-04-09 17:02:25 +02:00
Anna Kozlova 778952b6e3 dataflow inspection: suggest to replace Optional.of with Optional.ofNullable if value could be null (IDEA-124359) 2015-04-08 21:14:35 +02:00
Anna Kozlova 6047478cae redundant cast: do not raise if result in bad return type in lambda expression (IDEA-138927) 2015-04-08 21:14:33 +02:00
peter cfe4917c8b custom nullable annotation on an element should win over package-default not-null (IDEA-138894) 2015-04-08 18:13:16 +02:00
peter 8bf079ca59 prefer instanceofed variants in java completion (IDEA-138937) 2015-04-08 18:13:15 +02:00
peter 4ec8011316 relax "!null" contract checking to accept exceptions thrown (IDEA-133488) 2015-04-08 18:13:15 +02:00
Anna Kozlova 765f6faa19 SOE on infinite types with super wildcards (IDEA-138880; IDEA-77600) 2015-04-08 13:12:21 +02:00
Anna Kozlova b62f3b746c change return type fix: ensure parameter types are untouched (IDEA-138748) 2015-04-08 12:06:01 +02:00
Anna Kozlova 45c5c2163f extract functional parameter: ensure final inside anonymous, no additional qualifier (IDEA-138895) 2015-04-08 12:06:00 +02:00
Anna Kozlova e1e48eb1e8 replace duplicates: process chained constructors (IDEA-138745) 2015-04-08 12:05:59 +02:00
Anna Kozlova 822934d37a new overload resolution: do not accept primitive type as target of second search (IDEA-138839) 2015-04-08 12:05:58 +02:00
Anna Kozlova dfcebe315b new inference: check bounds problems for all variables acceptable in current context (IDEA-138407); reject complicated dependencies (see JDK-8039299) 2015-04-02 21:19:54 +02:00
Anna Kozlova 4958470009 redundant suppressions: ignore global custom inspections (IDEA-138622) 2015-04-02 21:19:53 +02:00
Anna Kozlova 80e3760c69 redundant cast: ensure lambda return statements are not mixed with those from containing method (IDEA-138724) 2015-04-02 18:06:41 +02:00
Anna Kozlova 3b40026df9 testdata for IDEA-138696 2015-04-02 18:06:40 +02:00
Anna Kozlova c08649b355 new overload resolution: avoid second conflict resolution for the same conflicts, e.g. because resulted array would be available inside guard of ResolveCache (IDEA-138596) 2015-04-02 18:06:39 +02:00
Dmitry Batkovich 4baf8a9561 IDEA-138456 inspection to replace collections.addAll() with properly parametrized constructor. 2015-04-02 17:12:41 +03:00
Anna Kozlova b8683c3640 lambda -> meth ref: accept receiver only for calls on lambda params (IDEA-138593) 2015-04-01 20:39:31 +02:00
Dmitry Batkovich 8dec74314d IDEA-138382 Added inspection to report about duplicated characters in StringTokenizer's delimiters 2015-04-01 14:47:00 +03:00
peter 7683276ed8 findClass should correctly sort compiled classes located inside project content (IDEA-101806) 2015-04-01 13:34:56 +02:00
Anna Kozlova b0db0e5444 strictfp in interfaces for java 1.8 (IDEA-138501) 2015-03-31 13:48:27 +02:00
Anna Kozlova a4eba96102 anonymous -> lambda: name conflict with params resolution (IDEA-138494) 2015-03-31 13:48:26 +02:00