Anna Kozlova
e077fa59eb
access static via interface class: fix case without qualifier (IDEA-192246)
2018-05-22 11:06:00 +03:00
Tagir Valeev
a457452110
CodeInsightUtilCore#mapBackStringRange extracted; octal escapes supported
...
Review ID: IDEA-CR-32724
2018-05-21 13:42:02 +07:00
Roman.Ivanov
3a9403be81
IfStatementWithIdenticalBranches: comment preserve extracting then else
...
IDEA-192301
2018-05-19 12:35:18 +07:00
Anna Kozlova
e524d46129
convert to local: restore comments once (IDEA-192268ˆ)
2018-05-18 20:16:28 +03:00
Anna Kozlova
e612219922
escape line breaks for same param value inspection (IDEA-192226)
2018-05-18 20:16:27 +03:00
Roman Shevchenko
57fb172991
Cleanup (warnings; formatting)
2018-05-18 16:36:00 +03:00
Pavel Dolgov
ea0b3c7fa9
Java: Update variable nullability only when DFA is completed successfully (IDEA-188416)
2018-05-18 13:17:08 +03:00
Anna Kozlova
7ce2ae03bc
inline: don't insert cast to var (IDEA-192159)
2018-05-18 12:46:00 +03:00
peter
4023a46c83
IDEA-192209 'final' modifier appeared almost in the end of autocompletion list in case of a beginning line with already defined variable
2018-05-18 09:53:00 +02:00
Anna.Kozlova
17822488a9
disable "actual param is the same constant" for vararg calls (IDEA-192148)
...
accept single argument calls but disable the fix as array wrapping is not supported
2018-05-17 18:17:53 +02:00
Anna.Kozlova
f407fb73c3
unknown class get all unresolved reference fixes (IDEA-192090)
2018-05-17 16:18:52 +02:00
Anna.Kozlova
99d01ccd8c
don't make raw type equal to anything else (IDEA-192037)
2018-05-17 11:28:24 +02:00
Anna.Kozlova
c4ada244b2
method refs: don't ignore applicability errors (IDEA-191467)
2018-05-17 11:28:24 +02:00
Tagir Valeev
3a8057e248
IDEA-192155 Contract checker: highlight the relevant part of contract
2018-05-17 15:34:26 +07:00
nik
c58bd8fc49
jps build: more accurately determine that target is completely dirty
...
Mark a target as completely dirty even if a custom filter was used (e.g. registered by JavaBuilderUtil.registerFilterToSkipMarkingAffectedFileDirty) provided that all files from the target were marked dirty.
This also fixes FieldPropertyTest.testConstantChainMultiModule which was broken after 507dd85f4d .
2018-05-17 10:44:01 +03:00
peter
987368ccfd
IDEA-191883 "Tab" completion doesn't work as expected for inner classes
2018-05-16 18:35:13 +02:00
Anna.Kozlova
6786d754e3
make method static: convert method reference to lambda (IDEA-191425)
2018-05-16 13:43:27 +02:00
Tagir Valeev
c8b4ce3e87
Correctly set possible targets for exit from finally block
2018-05-16 17:58:12 +07:00
Anna.Kozlova
10e023e75e
disable on-demand static import for non-static members (IDEA-191774)
2018-05-15 15:33:42 +02:00
Pavel Dolgov
6385a9311f
Java: Don't suggest to extract the trivial method that returns its parameter (IDEA-191899)
2018-05-15 15:33:22 +03:00
Tagir Valeev
918a8bac16
IDEA-191876 Bug in 'Condition is always true' inspection when comparing with NaNs
2018-05-15 17:55:53 +07:00
Tagir Valeev
dc36822f8a
IDEA-191937 Contract checker: more checks
2018-05-15 10:37:07 +07:00
Pavel Dolgov
c3717c3abd
Java: Handle similar parameters of multiple parametrized duplicates (IDEA-191738)
2018-05-14 15:16:50 +03:00
Tagir Valeev
d4ee6c0c2b
ContractChecker: refined processing of 'fail' (IDEA-191776)
2018-05-14 16:58:10 +07:00
Tagir Valeev
b336e70485
Less smart simplifications after loop-to-stream (keep stream)
2018-05-13 18:10:54 +07:00
Anna Kozlova
7ef04408cf
update testdata
2018-05-12 16:36:59 +02:00
Tagir Valeev
ca3f94d456
FoldExpressionIntoStream: support String.join-able patterns (IDEA-190570)
2018-05-11 16:25:05 +07:00
Tagir Valeev
78c37f99f7
IDEA-191767 Suggest to simplify Stream.of(...).collect(joining()) with String.join(...)
2018-05-11 16:25:04 +07:00
Tagir Valeev
40c1525959
Fix processing of instanceof on unknown variable (IDEA-191374)
2018-05-11 13:37:19 +07:00
Tagir Valeev
bc3c3bd4ab
DFA: fix stack unwinding on exception thrown from inside lambda (EA-120002)
2018-05-11 11:32:59 +07:00
Tagir Valeev
1b68072bee
CFG: Fixed traps processing when returning from inlined lambda (EA-120002)
2018-05-11 11:32:55 +07:00
Pavel Dolgov
1f0ed3d0ea
Java: Recognize multiple parametrized duplicates when extracting a method (IDEA-188243)
2018-05-10 12:59:45 +03:00
Tagir Valeev
09bae6cc2b
IDEA-191690 Inline method: less restrictions on tail call
2018-05-10 15:25:13 +07:00
Tagir Valeev
c55d9483b2
IntroduceVariableIntentionAction: stop at code block
...
To prevent escaping lambda/anonymous class
2018-05-10 13:26:15 +07:00
Tagir Valeev
0418d57ade
Error is reported when qualified this is used to initialize a final variable
...
Fixes IDEA-191686 Bad code is green (cannot assign a value to final variable)
2018-05-10 13:03:40 +07:00
Tagir Valeev
c4079a4c4e
IDEA-191570 Mutates contracts should be changed from "argN" to "paramN"
2018-05-10 12:15:00 +07:00
Tagir Valeev
4861c7cc17
RedundantStringOperation: refactored to CallMapper; indexOf/startsWith/lastIndexOf scenarios
...
Fixes IDEA-191536 More redundant string operations with indexOf lastIndexOf startsWith
2018-05-10 12:01:59 +07:00
peter
0c70c63d0a
IDEA-191500 Inappropriate 'Enum.valueOf()' Smart Type suggestion
2018-05-08 17:52:11 +02:00
Tagir Valeev
b5a6b85bd2
RedundantStreamOptionalCall: warnings for single-element streams
...
IDEA-160435 Warn about parallelization of single-element stream
IDEA-191569 Warn if stream of 0-1 elements is sorted or distincted
2018-05-08 16:47:08 +07:00
Tagir Valeev
a3368e5f69
RedundantStreamOptionalCall: sorted().collect(toSet()): fix to collect to LinkedHashSet (IDEA-191305)
2018-05-08 16:05:32 +07:00
Tagir Valeev
e20d4ba591
RedundantStreamOptionalCall: warn on sorted()/distinct().collect(toCollection(HashSet::new)) etc.
...
IDEA-191305 Stream::sorted can be simplified in some cases
2018-05-08 16:05:31 +07:00
Roman.Ivanov
a9b2ba633f
Create intention to change serialVersionUID: IDEA-25703
2018-05-08 11:59:36 +07:00
Roman.Ivanov
5147b0b394
Create intention to change serialVersionUID: IDEA-25703
2018-05-08 11:59:36 +07:00
Tagir Valeev
a93cb6b9a5
Java slicing: support -> this/-> paramN contracts
...
Fixes IDEA-121571 Feature request: A Contract Annotation that indicates that a method returns its argument
2018-05-08 11:53:19 +07:00
Dmitry Neverov
50268274cd
Support several postfix live templates on the same key
...
Need it for GO-4845 where same postfix sort template is expanded
differently depending on the type of the element it is invoked on.
2018-05-08 06:01:53 +02:00
Alexander Zolotov
0edcf5a488
Delete async updating quick navigation info
...
The responsibility of putting links inside quick documentation info
moved to DocumentationProviders.
Related to GO-5598
2018-05-07 17:42:47 +03:00
peter
0607536f02
make entering class literals in method calls easier during smart completion (IDEA-162394)
...
sort class literals by class proximity
process closest (imported) inheritors first
2018-05-07 10:19:33 +02:00
Tagir Valeev
24cde212c9
DFA: instanceof for unknown variable still may perform declared type check
...
Fixes IDEA-191374 DFA: "condition `x instanceof X` can be replaced with a null check" is not reported
2018-05-07 13:01:45 +07:00
Tagir Valeev
28b1de4b70
ContractReturnValue: respect NotNull annotation for ->paramN contracts
2018-05-07 13:01:45 +07:00
Tagir Valeev
36bc6bf2d2
enumValueOf: test data fixed (now "_ -> param1" contract is inferred)
2018-05-05 14:47:44 +07:00