Commit Graph
6157 Commits
Author SHA1 Message Date
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
Yaroslav Lepenkin 4dc4e97318 Do not wrap nested method call parameters, if wrap on parent method call parameters produces result not exceeding right margin 2015-04-21 18:27:16 +03:00
peter 64e2d1b3bb IDEA-138521 Infer contracts for anonymous class methods resolved to from outside 2015-04-20 18:09:56 +02: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
Alexey Kudravtsev 96906f7573 NPE 2015-04-20 14:35:12 +03:00
Alexey Kudravtsev 6f521ff2d7 more robust heuristic: compare text when deciding whether two nodes worth merging 2015-04-20 13:24:41 +03: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
Yaroslav Lepenkin 31dd1ae374 Do not wrap on lambda parameter list (IDEA-137404) 2015-04-17 17:01:30 +03: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
Yaroslav Lepenkin 35639e517a Preserving leading and trailing asterisks in javadoc while formatting (IDEA-138799) 2015-04-16 20:30:04 +03: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
Dennis Ushakov f0e69b638e IDEA-CR-2330: test 2015-04-16 16:10:37 +03:00
Anna Kozlova b062b8061a sm runner: don't use segmented output streams; provide separate runner for junit 3 2015-04-15 20:07:16 +02: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
Vladimir Krivosheev 9bd3de1a08 IDEA-65437 Tomcat server console: support ANSI coloring 2015-04-14 16:20:50 +02:00
peter c1a7f390fc java completion: don't suggest static members after instance qualifier in code fragments (IDEA-138709) 2015-04-13 20:29:51 +03:00
peter b59521d5ed deprecate and don't use the long gone CodeInsightSettings.SHOW_STATIC_AFTER_INSTANCE (IDEA-138709) 2015-04-13 20:29:50 +03:00
peter ecab324ae0 dfa: overriding @NotNull has precedence over super method @Nullable 2015-04-13 18:51:22 +03:00
Dmitry Batkovich 217452d406 StaticPseudoFunctionalStyleMethodInspection: Inspection to replace old pseudo functional code with stream api. added options to create custom templates. Tests fixed. Description improved. Moved to java-impl module 2015-04-11 11:28:39 +03:00
Yaroslav Lepenkin 53e202091f Made failing test passing.
Changed detected indent size to 4, which is default (It means we detected nothing, which is not bad)
Correct indent (2) is not detected because we determine continuation indent by last bracket in text, and this bracket could also be inside string literal, which is the case here.
2015-04-10 19:47:01 +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 7de7128fc9 infer that method is nullable when it returns null inside a ternary expression 2015-04-08 18:13:16 +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
peter 2018eb9176 java: always return not-null when correcting types based on resolve scope 2015-04-07 18:23:00 +02:00
Anna Kozlova e496c058f8 search for tests task: simplified start/finish 2015-04-07 11:25:46 +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