Commit Graph

9837 Commits

Author SHA1 Message Date
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
peter
03a663c63e IDEA-165006 Support chained completion for method references in Java 8+ 2017-06-05 19:20:02 +02:00
Anna Kozlova
c578a4ede7 disable assign param to field (IDEA-173747; IDEA-173689)
inapplicable types or already assigned
2017-06-05 20:14:45 +03:00
Anna Kozlova
a5501a81c0 incompatible return types in hierarchy fixed (IDEA-173809)
take parameter bounds into account
2017-06-05 20:14:44 +03:00
Dmitry Batkovich
fbd082f075 create switch intention: disable in for update IDEA-173690 2017-06-05 20:06:31 +03:00
Anna Kozlova
6423538939 surround with array fix: disable for non-denotable types (IDEA-173797) 2017-06-05 17:45:46 +03:00
Pavel Dolgov
071634d77e Java: Navigate to proper overload of a method being accessed via reflection (IDEA-172319) 2017-06-05 17:10:02 +03:00
Anna Kozlova
12c350758d Interface.super method calls: ensure valid qualifier (IDEA-173888)
forbid calls to super methods which are overridden in direct superinterfaces
2017-06-05 14:34:18 +03:00
Anna Kozlova
377520ade5 intersection type validation fixed (IDEA-173900)
take type parameter bounds into account
2017-06-05 14:34:18 +03:00
Anna Kozlova
5d9e95ad5d introduce functional variable (IDEA-141244) 2017-06-05 11:27:43 +03:00
peter
d82927a096 javadoc: show short annotation names in signatures and full names with explanations underneath (IDEA-167076, IDEA-166361) 2017-06-03 23:27:11 +02:00
peter
473d383cbe dfa: prefer unknown nullity from super over scoped nullity default (IDEA-167062) 2017-06-03 18:07:11 +02:00
nik
36d5139503 root index: store information to which unloaded module a content root belongs (IDEA-27471)
This information may be used to provide special icon and actions for unloaded modules in Project View.
2017-06-02 17:41:02 +02:00
Pavel Dolgov
f1757b0027 Java: Recognize Integer.TYPE (and similar) when checking reflective access to methods (IDEA-172744) 2017-06-02 13:32:28 +03:00
Tagir Valeev
13f94f9df6 MakeVoidQuickFix: handle side-effects correctly; add braces 2017-06-02 16:50:48 +07:00
Alexey Kudravtsev
2872fd4ac6 cleanup 2017-06-02 11:32:33 +03:00
Pavel Dolgov
6ebd6d9b4d Java: Fixed conversion of constructor parameters for java.awt.Color (IDEA-172996) 2017-06-01 13:30:14 +03:00
Tagir Valeev
a326c0617a Bytecode analysis: basic return value tracking 2017-06-01 13:38:06 +07:00
Tagir Valeev
19eb35d106 Bytecode analysis: index size stats; minor index compaction 2017-06-01 10:53:14 +07:00
Tagir Valeev
588d978362 OptionalIsPresentInspection: do not warn if map() part can be null
If we cannot determine the non-nullity of map expression, then info
level is used. Fixes IDEA-172609 "Replace Optional.isPresent() checks
with functional-style expressions" is broken.
2017-05-31 17:48:57 +07:00
Tagir Valeev
fd3dde8aa7 NullityInference: better handling of ternary, parentheses, casts 2017-05-31 17:45:18 +07:00
Tagir Valeev
4bd2a5647f BytecodeAnalysisTest.checkCompoundId fixed for null psiKey 2017-05-31 16:09:46 +07:00
nik
7175055131 root index: exclude content roots of unloaded modules from the project (IDEA-27471) 2017-05-31 11:51:54 +03:00
nik
8b233d5590 project configuration: added support for unloaded modules
Unloaded modules are removed from the project, they aren't shown in UI, all of their contents isn't indexed or compiled. List of unloaded modules is stored in projects workspace settings, so it isn't shared with other team members. (IDEA-27471)
2017-05-31 11:38:01 +03:00
Tagir Valeev
f3eec8cc18 BytecodeAnalysis: allow to disable index and hashing for debug 2017-05-31 12:57:32 +07:00
Alexander Zolotov
6b7c2b7efd Add support for exclusions from library by condition
- migrate to CharSequence
- simplify if-else to single boolean expression
- inline deprecated methods
2017-05-30 21:58:56 +03:00
Alexander Zolotov
e5cd36ea96 Add support for exclusions from library by condition 2017-05-30 21:58:56 +03:00
Alexander Zolotov
7f3db1d09a Indices: do not iterate content of visited roots twice
While iterating ProjectFileIndex visited roots should not be processed,
their content should be skipped
2017-05-30 21:58:56 +03:00
Roman Shevchenko
fc17fd6fbc Merge remote-tracking branch 'origin/master' 2017-05-30 21:51:23 +03:00
Roman Shevchenko
4df0708880 [java] reads MethodParameters attribute on building .class stubs (IDEA-173644) 2017-05-30 21:50:35 +03:00
peter
e7a45af100 java completion: prefer local variables over fields of the same expected type 2017-05-30 20:10:37 +02:00
peter
d9accfb4d4 IDEA-173473 Class type argument brackets are still inserted despite that being disabled 2017-05-30 20:10:36 +02:00
Dmitry Batrak
e099056dc2 IDEA-173501 Parameter hints glue together after comma deletion 2017-05-30 17:58:52 +03:00
Dmitry Batkovich
cb3f8a3209 prefer most used weigher: fix test 2017-05-30 15:43:26 +03:00
Anna Kozlova
3f76ffa2f8 provide quick fix to qualify super call to default interface method from class (IDEA-172325) 2017-05-30 15:00:42 +03:00