Commit Graph
9455 Commits
Author SHA1 Message Date
Anna.Kozlova b2ecf6e674 inference: don't fix the lambda return type for nested lambda processing (IDEA-169161) 2017-04-05 18:28:48 +02:00
Anna.Kozlova 0340bd66af suspicious calls: support new Map methods (IDEA-170815) 2017-04-05 18:28:48 +02:00
Vladimir Krivosheev 4432b71a66 deprecate VirtualFileAdapter in favour of direct usage of VirtualFileListener (it is possible since java 8 is used) 2017-04-05 16:39:24 +02:00
Dmitry Batkovich fc5666c54f javac ast indices: temp mute test 2017-04-05 16:12:26 +03:00
Anna.Kozlova afd31563b0 convert to diamonds: ensure check for applicability is performed on static factory as otherwise it would be just skipped (IDEA-170813) 2017-04-05 10:00:19 +02:00
Bas Leijdekkers 94fdc35577 "push condition inside call" intention replaced with "Conditional can be pushed inside branch" inspection 2017-04-04 22:47:39 +02:00
Anna.Kozlova de225dc91f implicit usage providers: define behaviour in javadoc (IDEA-170805) 2017-04-04 15:08:19 +02:00
Dmitry Batkovich 9713316b49 IDEA-170355 LongLineInspection ignores package/import statements in java 2017-04-04 12:10:44 +03:00
Dmitry Batkovich a0cb4092b7 Merge branch 'db/method-chains-completion'
# Conflicts:
#	jps/jps-builders/src/org/jetbrains/jps/backwardRefs/BackwardReferenceIndexUtil.java
#	jps/jps-builders/src/org/jetbrains/jps/backwardRefs/BackwardReferenceIndexWriter.java
#	jps/jps-builders/src/org/jetbrains/jps/incremental/JavaBuilderService.java
2017-04-03 17:08:15 +03:00
Dmitry Batkovich a48371d8fc partially mute tests 2017-04-03 16:07:25 +03:00
Dmitry Batkovich 50a125795b no more classFilesIndex package 2017-04-03 16:07:13 +03:00
Dmitry Batkovich e15188e706 fix test data for chain relevance 2017-04-03 16:07:10 +03:00
Dmitry Batkovich 91fa3f1dbe method chain search use PsiType-s instead of raw strings 2017-04-03 16:07:09 +03:00
Dmitry Batkovich 3c04fad90d method chain search use PsiType-s instead of raw strings 2017-04-03 16:07:01 +03:00
Dmitry Batkovich f874122f09 method chain search use PsiType-s instead of raw strings 2017-04-03 15:53:54 +03:00
Dmitry Batkovich ce262d41ff use compiler indices in method chains completion (draft) 2017-04-03 15:53:48 +03:00
Dmitry Batkovich 6d4e63d001 added a test for completion 2017-04-03 15:53:38 +03:00
Anna.Kozlova faa4c93b47 skip errors in case of diamond inference with type parameters on constructor 2017-04-03 13:52:13 +02:00
Anna.Kozlova 1c4191384e fix testdata 2017-04-03 11:58:06 +02:00
Alexey Kudravtsev c776e56470 made quickfix no longer visible when applied to fix IDEA-170081 Inspection "Collapse 'if' statement" generates wrong code when quickly fixing the code 2017-04-03 12:24:57 +03:00
Alexey Kudravtsev e9781665c8 made intention tests not dependent on internal representation of quick fix popup 2017-04-03 12:24:57 +03:00
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