Commit Graph
9465 Commits
Author SHA1 Message Date
Anna.Kozlova 32073ed7f9 java 9: hide inappropriate for interface modifier suggestions, ensure valid combination of modifiers (IDEA-171091) 2017-04-07 18:20:18 +02:00
Anna.Kozlova 229ff01656 java 9: ensure private methods in interfaces do not receive implicit public modifier (IDEA-171089) 2017-04-07 18:20:18 +02:00
Anna.Kozlova 8e598aa908 java 9: reject private modifiers in annotation types (IDEA-171088) 2017-04-07 18:20:18 +02:00
Egor.Ushakov 59a2c555ca IDEA-171094 Extract method object fails 2017-04-07 16:41:58 +03:00
Dmitry Batkovich 7f56e62e4f actual parameter is the same value inspection: add option to ignore method by visibility Dmitry Batkovich 7/4/2017, 3:45 PM 2017-04-07 16:13:49 +03:00
Egor.Ushakov e1f423e1d4 IDEA-171134 Extract as method object generates the same getters 2017-04-07 15:21:09 +03:00
Anna.Kozlova 412d071d08 add fixes to change expected type when inference fails due to it (IDEA-162846) 2017-04-07 09:51:10 +02:00
peter 03c39c23bc create stub-based smart pointers even when AST is loaded 2017-04-06 18:35:58 +02:00
Dmitry Batkovich 1505134c44 annotate CompilerReferenceDataInCompletionTest with SkipSlowTestLocally 2017-04-06 16:27:27 +03:00
Yaroslav Lepenkin edba05ec48 added separate option for lambdas braces style [IDEA-116736] 2017-04-06 15:28:01 +03:00
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