Commit Graph
9434 Commits
Author SHA1 Message Date
Anna.Kozlova 51d4e9936a static imports: don't compare with expected type when it depends on unresolved reference (IDEA-163072) 2017-03-31 18:01:29 +02:00
Pavel Dolgov 79bbbbf8ff Java: Quick fix for merging duplicate statements in module-info (IDEA-169211) 2017-03-31 15:59:08 +03:00
Yaroslav Lepenkin 86e7f7e92c [param hints] fixed EA-99743 2017-03-31 11:44:21 +03:00
peter 4b83d7bd0d IDEA-169972 Smart Enter before else-if splits that else-if 2017-03-30 16:54:24 +02:00
Vladimir Krivosheev ba481894fb add overrides, use SmartList/THashSet, default interface method impl 2017-03-30 10:34:03 +02:00
peter 3167a61dcb ConcurrentIndexTest: don't hang on computers with odd core count, fix more tests 2017-03-30 08:47:30 +02:00
peter e6e69a4d8a ConcurrentIndexTest: don't hang on computers with odd core count 2017-03-30 08:10:22 +02:00
Tagir Valeev 478cae19bf IDEA-170032 Replace with foreach is not proposed in alt-enter
Now both options (when unchecked) only disable warning and batch-mode replacement, but the action is still available as an intention.
2017-03-30 13:07:18 +07:00
Anna Kozlova f150293994 visibility inspection: prefer extension visibility to default one (IDEA-166543) 2017-03-29 13:19:16 +02:00
Pavel Dolgov 8405b6ccb5 Java: Implemented inspection "Reflective invocation arguments mismatch" (IDEA-167270) 2017-03-29 12:54:08 +03:00
peter e8ac7110c0 IDEA-170214 Properly handle Bean Validation inheritance in @NotNull/@Nullable problems inspection 2017-03-28 19:01:55 +02:00
peter 99085fbe1c dfa: introduce ImplicitUsageProvider.isImplicitlyNotNullInitialized to support Mockito (IDEA-167790) in a way that doesn't break lombok (IDEA-170490) 2017-03-28 17:00:45 +02:00
Yaroslav Lepenkin 8954f34691 [java formatter] respect SPACE_BEFORE_COMMA [IDEA-150466] 2017-03-28 17:33:11 +03:00
Anna.Kozlova e740060187 move to java-tests 2017-03-28 16:28:29 +02:00
Anna.Kozlova 28486bab6c local can be final: suggest to add final to explicitly final params (IDEA-169342) 2017-03-28 16:28:29 +02:00
Anna.Kozlova 40a4b22933 lombok workaround: filter out non-static methods as soon as possible - methods even in interfaces must be explicitly static (IDEA-170385) 2017-03-28 14:15:56 +02:00
Anna.Kozlova 3da240cba6 method reference: distinguish captured wildcards by target parameters (IDEA-170340) 2017-03-28 10:09:30 +02:00
Anna.Kozlova 9f3dfc8629 check that inferred intersection type doesn't contain same generic type with different type arguments (IDEA-170325) 2017-03-28 10:09:30 +02:00
Yaroslav Lepenkin 7561efbf46 [java formatter] space between enum constant and annotation 2017-03-28 10:57:00 +03:00
Yaroslav Lepenkin 1e0a8e3c7d [param hints] ensure getHintInfo at offset returns PsiElement which text range contains inlays (in order to add proper methods to blacklist) 2017-03-28 10:57:00 +03:00
Yaroslav Lepenkin 90407ca29f [param hints] refactored + preserve existing hints in some cases [IDEA-169381] 2017-03-28 10:57:00 +03:00
Dmitry Batrak 74a89fa708 move caret outside of parenthesis after Tab on last method parameter 2017-03-27 18:54:02 +03:00
peter 7372d02347 override/implement completion: show short types, not raw (IDEA-CR-19511) 2017-03-27 17:39:24 +02:00
Vladimir Krivosheev ca7afcff13 update guava to 21.0 2017-03-27 16:13:51 +02:00
Dmitry Batrak 4c972aaef4 don't hide completion parameter hints on nested completion 2017-03-27 15:00:18 +03:00
Anna.Kozlova 95226c21c5 explicit right to left side assignment failure when inference breaks on return type (IDEA-152677) 2017-03-27 10:34:43 +02:00
Tagir Valeev a03fffe024 DFA Optional.orElse handling improved (splitting states) 2017-03-27 13:18:00 +07:00
Tagir Valeev 58dc190a9d IDEA-170136 Null analysis inspection misses orElse(null); 2017-03-27 13:06:30 +07:00
Tagir Valeev 93e35b7334 ExtractSetFromComparisonChainAction improvements (IDEA-CR-19606)
1. Fixed modifiers for interfaces
2. Replacement wrapped with Collections.unmodifiableSet
3. Supported Java 1.4 and lower
4. Supported Guava ImmutableSet
5. Supported comparisons like s.equals("xyz"), Objects.equals(s, "xyz")
2017-03-27 12:35:02 +07:00
Maxim.Mossienko 400eaa2f20 Fixed validness of whole file usage (IDEA-169992) 2017-03-24 20:31:24 +01:00
Roman Shevchenko 9f3251a3da [java] drops support for incorrect (pre-b158) module-info.class attribute 2017-03-24 18:52:32 +01:00
Roman Shevchenko 5e5c14c57e [java] raises language level to Java 9 2017-03-24 18:35:57 +01:00
Pavel Dolgov 25afffeb70 Java: Filter by 'static' modifier in MethodHandle/VarHandle completion assistance (IDEA-167319, IDEA-CR-19610) 2017-03-24 15:45:42 +03:00
Roman Shevchenko 988087f02c Merge remote-tracking branch 'origin/master' 2017-03-24 13:42:10 +01:00
Roman Shevchenko 6bd1b92c6e [tests] prepares Java tests for the language level raise 2017-03-24 13:19:01 +01:00
Roman Shevchenko 05b15f593e Cleanup (unneeded language level restore) 2017-03-24 13:19:00 +01:00
Roman Shevchenko 1abffecba5 Cleanup (warnings, formatting) 2017-03-24 13:18:59 +01:00
Dmitry Batrak f496d9d36a don't insert parameter hints on completion of method reference 2017-03-24 13:18:30 +03:00
peter 13905e40af make performance ResolveClassTest non-I/O-bound 2017-03-23 21:03:44 +01:00
Dmitry Batkovich 5eaa204d2a add a test for read-only indices (check storages read-only property) 2017-03-23 22:53:29 +03:00
Dmitry Batkovich bbb9f3e478 add a test for read-only indices (check storages read-only property) 2017-03-23 22:50:37 +03:00
Anna.Kozlova 98bca913aa run tests from selection in the editor; tests for configuration from editor text (IDEA-156237) 2017-03-23 16:44:29 +01:00
Anna.Kozlova ca035634d1 warn if generics vararg method is called with 50+ poly args (IDEA-169240) 2017-03-23 15:49:44 +01:00
peter a4822b754b increase daemon reactivity when highlighting large java files 2017-03-23 15:29:10 +01:00
peter ffd34c0097 warm up before measuring performance in ResolveClassTest 2017-03-23 14:28:47 +01:00
Tagir Valeev 3d216927b7 DataFlowInspection: do not report some common compile-time flag checks 2017-03-23 11:34:35 +07:00
peter 60942f6c6d cleanup some jdks added in tests 2017-03-22 17:29:58 +01:00
Pavel Dolgov 7c3a2057df Java: Implemented completion of field types and method signatures in calls to findConstructor(), findVirtual(), findVarHandle(), etc (IDEA-167319) 2017-03-22 14:44:26 +03:00
Tagir Valeev d9702d7d8d ExtractSetFromComparisonChainAction: i18n, java9 test, disable in Java 1.4 or lower (as varargs and generics aren't available there) 2017-03-22 18:30:28 +07:00
Tagir Valeev b0c584a295 IDEA-170033 Support raw-types when converting Iterable.forEach to loop 2017-03-22 16:51:46 +07:00