Yaroslav Lepenkin
a9bdd665c0
[Parameter Name Hints] ditched folding implementation, hints is shown via inlays on registry flag or "inline parameter names for literals" code folding setting
2016-09-14 14:43:33 +03:00
Yaroslav Lepenkin
06db71cea0
[Parameter Name Hints] show for varargs, extracted name hints tests to separate suite
2016-09-14 14:43:33 +03:00
Daniil Ovchinnikov
681bfa22e1
Extract psi class scope comparator
2016-09-14 14:25:16 +03:00
peter
83e006b1c1
IDEA-161070 Memory leaks of LightVirtualFiles
2016-09-12 17:01:15 +02:00
Roman Shevchenko
48ce294241
[java] javadoc in modules
2016-09-12 17:13:22 +03:00
Roman Shevchenko
71a05d01e7
[java] allows non-members to host a javadoc comment
2016-09-12 17:12:22 +03:00
Roman Shevchenko
fdb7c872ba
[java] fixes module reference caching
2016-09-09 12:33:25 +03:00
Roman Shevchenko
f15e6d0419
Merge remote-tracking branch 'origin/master'
2016-09-08 22:36:05 +03:00
Roman Shevchenko
09cb3081a8
[java] resolves Java module references according to a project model
2016-09-08 22:34:26 +03:00
Pavel Dolgov
898ab196d9
Java inspection: Check if the returned variable is read in the 'finally' block of an enclosing 'try' statement in "Move return to computation" inspection (IDEA-121153)
2016-09-08 16:22:07 +03:00
Pavel Dolgov
bed73576d5
Merge remote-tracking branch 'remotes/origin/pdolgov/moveReturnToComputation'
2016-09-07 17:21:40 +03:00
Alexey Kudravtsev
db6d4e1fcc
removed "suppress unused" for deprecated methods to avoid using them again, especially since some of them already are.
2016-09-07 14:12:33 +03:00
Pavel Dolgov
04430d7f73
Java inspection: Fixed catch finally in "Move return to computation" (IDEA-121153)
2016-09-06 19:05:05 +03:00
Pavel Dolgov
07d0db05f1
Java control flow: Check for side effect of exception thrown when extracting a method - javadoc updated according to the review comments, a minor refactoring applied (IDEA-79444, IDEA-159916)
2016-09-02 17:07:11 +03:00
Pavel Dolgov
b322370356
Java control flow: Check for side effect of exception thrown when extracting a method - javadoc improved, a long computation is split into several helper methods (IDEA-79444, IDEA-159916)
2016-09-02 15:15:08 +03:00
Roman Shevchenko
c3a623e167
Cleanup (internal type text expressed via canonical wherever possible)
2016-09-02 14:58:53 +03:00
Alexey Kudravtsev
0798a43f7d
Use resolveImaginarySuperCallInThisPlace() instead of enumerating all super class constructors; find usages of overloaded ctr should find only correct implicit super calls
2016-09-01 16:59:57 +03:00
Anna Kozlova
5eacecf2b6
ignore lombok generated methods
...
EA-86304 - assert: PsiDiamondTypeUtil.areTypeArgumentsRedundant
2016-09-01 16:38:43 +03:00
peter
7d670211a6
decrease the invocation counts of psi.getText in several java places
2016-09-01 10:00:39 +02:00
Roman Shevchenko
8c45b1c5e6
[java] class and package name completion in module files
2016-08-30 19:36:12 +03:00
peter
b2791e4f73
use green stubs in java PSI to decrease the amount of AST being reloaded after GC
2016-08-30 17:35:04 +02:00
peter
8c246b9676
fix stub/AST inconsistency for java annotation attribute names
2016-08-29 17:26:38 +02:00
Roman Shevchenko
98176acaac
Merge remote-tracking branch 'origin/master'
2016-08-26 19:23:40 +03:00
Roman Shevchenko
c6c4aa93ca
[java] module 'provides' statement highlighting
2016-08-26 19:23:02 +03:00
peter
8d64a13355
fix some stub/AST inconsistencies in java PsiClass
...
* getContainingClass worked differently for local classes
* supertype generic parameters could be resolved to null if AST loading occurred concurrently
2016-08-26 17:52:23 +02:00
Roman Shevchenko
aef6db56d8
Cleanup (formatting)
2016-08-26 13:43:20 +03:00
Roman Shevchenko
762263320b
[java] module 'uses' statement highlighting
2016-08-26 13:23:09 +03:00
Roman Shevchenko
da27335c78
[java] module 'exports' statement highlighting
2016-08-25 19:00:21 +03:00
Roman Shevchenko
b469d5fbd2
[java] module cycles highlighting
2016-08-24 19:33:59 +03:00
Roman Shevchenko
cac7ae616a
Cleanup (suppressions; dead code; formatting)
2016-08-24 17:44:22 +03:00
Pavel Dolgov
1a3605e4cb
Java control flow: Don't allow extracting method if there's a potential side effect on the local variables in the case of exception thrown (IDEA-79444, IDEA-159916)
2016-08-24 15:24:43 +03:00
Dmitry Batrak
07f988d3ad
Inline hints with parameter names for literal method call arguments
...
As part of this change an API is introduced to add custom visual elements (inlays) into editor, not reflected in document text.
At the moment only passive inline elements with height equal to line height are supported.
2016-08-23 18:42:45 +03:00
Roman Shevchenko
ea9b7678eb
Merge remote-tracking branch 'origin/master'
2016-08-23 15:27:05 +03:00
Roman Shevchenko
3d56fca31f
[java] highlights duplicate 'requires' statements
2016-08-23 15:22:23 +03:00
peter
5eba3ed388
PsiClass#getMethods et al: don't allow clients to modify shared arrays
2016-08-23 12:55:03 +02:00
Roman Shevchenko
31190de3e8
[java] NPE fix & diagnostics (EA-86973)
2016-08-22 11:10:21 +03:00
Anna Kozlova
0591484921
allow to delete cls file (IDEA-159270)
2016-08-22 08:21:16 +03:00
peter
3d83e27ee4
remove stub getParent overriders, now unneeded because of IDEA-156609 (StubBasedPsiElementBase.getParent should choose itself, whether to use stubs or AST)
2016-08-19 10:12:03 +02:00
Roman Shevchenko
64e20e135a
Merge remote-tracking branch 'origin/master'
2016-08-18 19:56:24 +03:00
Roman Shevchenko
3f5476fb15
[java] initial completion for modules
2016-08-18 19:52:01 +03:00
Roman Shevchenko
cfd385ea0c
Cleanup (constants; formatting)
2016-08-18 19:38:58 +03:00
Alexey Kudravtsev
dca553115a
performance: field can be final instead of volatile
2016-08-18 13:44:56 +03:00
Roman Shevchenko
e577bddb66
[java] multiple synonymous modules is not an error
2016-08-17 20:44:54 +03:00
Anna Kozlova
1bece25b95
inference: when unchecked conversion was applied, resolve variables against raw substitutor
2016-08-17 13:53:02 +03:00
peter
c6ac7f6656
introduce "green" stubs that can coexist with AST
2016-08-17 11:21:32 +02:00
Roman Shevchenko
4c2c1a084c
[java] resolve in modules
2016-08-16 16:18:12 +03:00
Pavel Dolgov
75ba67cd90
Java control flow: Collect more data on try-catch statements which contain errors ahd therefore can't be handled normally. Use LOG.error for that instead of 'assert'
2016-08-15 20:18:43 +03:00
peter
58aa46d9f9
add FileLocalResolver to allow some basic in-file resolve during indexing
2016-08-13 12:12:20 +02:00
peter
29bd347e1a
a bit more efficient annotation parameter stub storage (IDEA-CR-12611)
2016-08-13 12:12:20 +02:00
peter
9776d5a28d
speedup functional expression search (IDEA-159107)
...
* filter inapplicable expressions without loading AST if possible, via approximate resolve
* for that, store the approximate call chains in index
* iterate over files once, not for each empty marker Runnable interface separately
* don't rely on generic method parameter index: it's huge, memory-hungry and works only in Java
2016-08-13 12:12:19 +02:00