Commit Graph

9871 Commits

Author SHA1 Message Date
Maxim.Mossienko
6838c9f9f5 fix test data due to change in mock jdk 1.8 2017-06-12 20:17:42 +02:00
Maxim.Mossienko
b29013e1dc fix test data due to change in mock jdk 1.4 2017-06-10 22:07:56 +02:00
Anna Kozlova
fcd84a0d35 add explicit type arguments intention (IDEA-173960) 2017-06-09 21:15:37 +03:00
peter
7777d42593 don't mix before/after documents when updating persistent range markers (IDEA-174202) 2017-06-09 18:21:40 +02:00
peter
2e6cfa9223 don't generate setters for constants during completion (IDEA-CR-21764) 2017-06-09 18:16:19 +02:00
Anna Kozlova
b18d182cc8 collect transitive dependant type parameters (IDEA-174194) 2017-06-09 18:33:06 +03:00
Roman Shevchenko
0d61e56b64 [java] recognizes @index Javadoc tag (IDEA-160185) 2017-06-09 17:50:49 +03:00
peter
dceb40cf32 add some notnulls to BaseStream (IDEA-173629) 2017-06-09 16:41:54 +02:00
Anna Kozlova
d0fab7fd0b introduce functional variable: encode this (IDEA-174203) 2017-06-09 16:51:20 +03:00
Anna Kozlova
404fe68c03 introduce functional variable: allow comments (IDEA-174183) 2017-06-09 16:51:20 +03:00
peter
1a4a90e174 IDEA-173726 Generation completion suggests create setter for final field 2017-06-09 15:41:32 +02:00
Anna Kozlova
e3aecbce9b extract functional: suggest incompatible SAM by throws list
when there is no applicable interfaces (IDEA-174045)
2017-06-09 12:28:27 +03:00
Anna Kozlova
9c1a494628 extract method: disable support of postfix/prefix exprs (IDEA-174182)
enable it for extract method object only
2017-06-09 12:28:26 +03:00
Alexey Kudravtsev
292e59e0aa Revert do not remove invoked quick fix from the list if it did nothing
This reverts commit 54783edafd
2017-06-09 11:39:49 +03:00
Alexey Kudravtsev
3c9c050b46 fixed yellow code in PersistentFSImpl where VEvent was casted to subclass for the method different not-nullness 2017-06-09 11:08:23 +03:00
Roman Shevchenko
e16815fb9f [java] drops improperly added Javadoc tag 2017-06-08 19:14:48 +03:00
nik
9bc6d2fc15 root index: compute dependent unloaded modules
We need to show a warning about possible incomplete results if there is an unloaded module which depends on a module from the project and e.g. 'Find Usages' is invoked on an element from such module. In order to implement that we need to quickly determine if there exists an unloading module which depends on a given loaded module.
2017-06-08 18:07:04 +02:00
Pavel Dolgov
a95807108c Java: Don't extract method where it's not safe because of nullable result (IDEA-167391) 2017-06-08 18:17:10 +03:00
peter
0e938165ea fix contracts for junit5 assertions 2017-06-08 17:12:36 +02:00
peter
31ddfe6122 support yourkit 2017 thread dump format 2017-06-08 17:12:35 +02:00
Anna Kozlova
cb2eaa99e1 extract functional: don't show error dialogs (IDEA-174180)
unable to perform in complex cases instead
2017-06-08 17:49:08 +03:00
Anna Kozlova
84747a178a suggest functional: ensure only exact types are suggested for primitives
SAM types with primitive parameters should be checked for exact matching, boxed types accept passing primitives
2017-06-08 17:49:07 +03:00
Anna Kozlova
3d73c0eb92 pattern to detect language level by name adjustments 2017-06-08 17:49:07 +03:00
Anna Kozlova
e78186d6ae support for arrays in template j.u.Objects.equals/hashCode (IDEA-162302) 2017-06-08 17:49:06 +03:00
Anna Kozlova
e32734234d move instance method: resolve conflict local var/field in target class
IDEA-174017
2017-06-08 17:49:06 +03:00
Alexey Kudravtsev
54783edafd do not remove invoked quick fix from the list if it did nothing to fix IDEA-173961 "Interrupted" quick fix disappears from popup 2017-06-08 16:02:45 +03:00
Alexey Kudravtsev
5f99c1d418 removed console spam 2017-06-08 16:02:45 +03:00
Tagir Valeev
c0f0d3c636 IDEA-174151 'Replace with single Map method' suggests incorrect rewrites to computeIfAbsent
Option added (on by default) to disable warning if side effects are possible.
2017-06-08 17:41:44 +07:00
Tagir Valeev
58ac2733cf TEST_DATA_DIR non-public (IDEA-CR-21670) 2017-06-08 16:42:28 +07:00
Tagir Valeev
fb6965b6b9 ExtractSideEffectsFix -> DeleteSideEffectsAwareFix; i18n
Now intention availability logic is moved from HighlightUtil to DeleteSideEffectsAwareFix
Review: IDEA-CR-21623
2017-06-08 12:15:20 +07:00
Tagir Valeev
a5dcf8841f ComparatorResultComparisonInspection: support >/>=/</<= checks
Additional fix for IDEA-173177. Now conditions like "a.compareTo(b) > 1" are warned as well.
2017-06-08 10:14:34 +07:00
peter
03bd345d8a fix CreateSubclassTest 2017-06-07 20:42:07 +02:00
Anna Kozlova
3e7e52a4df inline to anonymous: convert to lambda when applicable (IDEA-173821) 2017-06-07 19:04:05 +03:00
Anna Kozlova
101ae53c3b introduce functional: convert to lambda when applicable (IDEA-174018) 2017-06-07 19:04:04 +03:00
Anna Kozlova
d65ff6ad81 introduce functional: combine extract method & introduce
IDEA-174011; IDEA-174021
2017-06-07 19:04:04 +03:00
Anna Kozlova
cb1e34fe92 suggest SAM with same primitive return type (IDEA-174020) 2017-06-07 19:04:04 +03:00
peter
b8588d2006 prefer local variables over NULL_PSI_ELEMENT in smart completion 2017-06-07 13:35:28 +02:00
Alexey Kudravtsev
e5eca56a78 name performance activity as a noun to make messages look more natural 2017-06-07 12:40:25 +03:00
Tagir Valeev
535c113dba IDEA-172877 Provide a quick-fix on 'Not a statement' error message 2017-06-07 15:27:49 +07:00
Anna Kozlova
07a086dace don't suggest inaccessible functional interfaces (IDEA-174008) 2017-06-06 19:07:58 +03:00
Anna Kozlova
02c718aae8 replace assignment with comparison in condition exps (IDEA-173860) 2017-06-06 19:07:58 +03:00
peter
e5b892bd23 report when notnull type is instantiated with unknown nullity (IDEA-CR-21203) 2017-06-06 17:41:59 +02:00
Roman Shevchenko
2c3c7ccbce Merge remote-tracking branch 'origin/master' 2017-06-06 17:19:20 +03:00
Roman Shevchenko
71966404b9 [java] excludes multi-release classes from search (IDEA-164460) 2017-06-06 17:18:39 +03:00
Anna Kozlova
a19a52bf49 raw type to parameterized: warn about conflicts (IDEA-173770) 2017-06-06 14:54:07 +03:00
Anna Kozlova
6487bb6913 disable assign parameter to final field (IDEA-173815)
for constructors with chaining calls, for non-constructors
2017-06-06 14:54:06 +03:00
yarik
d2aaf814aa [java formatter] ditched tab post format processor, since it is doing something inappropriate, has performance issues and we can happily live without it. 2017-06-06 13:29:37 +03:00
Tagir Valeev
dbcddf5a4a BoxForComparisonInspection enhanced -> UseCompareMethodInspection
Suggests to use Integer.compare(), etc. instead if ternary operator or if chain. Fixes IDEA-173766.
2017-06-06 17:20:08 +07:00
Bas Leijdekkers
751d7b6aaf RegExp: report already defined group name 2017-06-06 09:06:46 +02:00
peter
b61faedfd6 support @TypeQualifierNickname (IDEA-173544) 2017-06-05 19:20:02 +02:00