Tagir Valeev
b477b32395
IDEA-186034 Lambda can be method call inspection should not generate code with inference failures
2018-02-02 12:09:53 +07:00
Anna Kozlova
30464d6b08
disable fixes when target types depend on unresolved type params (IDEA-185967)
2018-02-01 13:40:04 +03:00
Tagir Valeev
f06e8ca2f0
IDEA-185812 Allow to force explicit toCollection(ArrayList::new) instead of toList() in "Subsequent steps can be fused into Stream API"
2018-02-01 17:16:04 +07:00
Tagir Valeev
dde611b8f4
IDEA-185819 Operator ! cannot be applied to void: add a quick-fix
2018-02-01 10:37:29 +07:00
Roman Ivanov
465f4124a2
SortContentAction: support generic types in vararg: IDEA-185852
2018-01-31 16:23:10 +07:00
Anna Kozlova
f1536bb969
use lambda to avoid context remapping (IDEA-185448)
...
for anonymous class this expressions have to be encoded to point to outer class, for lambda expressions there is no need for that. Leave unchanged (array initializer) for old java versions
2018-01-30 19:38:53 +03:00
Rustam Vishnyakov
ae93ef0bdc
Remove continuation indent on typing '@' in JavaDoc
...
See IDEA-179426 Javadoc @param/@return tag after @param tag with description should not be indented
2018-01-30 19:12:28 +03:00
Anna Kozlova
ca1d8a348c
postpone highlighting on conditions when errors occur on containing call
...
poly conditional expression receives type from context, if context contains errors, it's better to highlight those first (IDEA-185540)
2018-01-30 11:33:49 +03:00
Roman Ivanov
798fea215a
SortContentAction: fix warping in the middle of initializer: IDEA-185786
2018-01-30 13:58:05 +07:00
Roman Ivanov
c71ae7e4f1
SortContentAction: consistent count of expr to be available: IDEA-185785
2018-01-30 13:58:05 +07:00
Tagir Valeev
3210510c96
CollectionUtils#isCollectionOrMapSize
...
Used in ToArrayCallWithZeroLengthArrayArgumentInspection and StreamApiMigrationInspection
2018-01-30 11:01:38 +07:00
Roman Ivanov
abd1458307
SortContentAction: fix IOOBE, check if expr is literal: IDEA-185784
2018-01-30 10:39:30 +07:00
Roman Ivanov
d5d06483fe
RedundantExplicitCloseInspection created: IDEA-176630
2018-01-30 10:39:29 +07:00
Tagir Valeev
1e0612c56a
AssignmentTwicePreciseTypeDfa test fixed (imports restored)
2018-01-30 09:54:02 +07:00
Dmitry Batrak
5542ec580e
IDEA-184991 Parameter info popup doesn't highlight current item
...
simplify test
2018-01-29 17:40:25 +03:00
Tagir Valeev
d0f2bde3a8
GuessManagerImpl: type inference fixes
2018-01-29 16:40:51 +07:00
Tagir Valeev
97aa63f410
GuessManagerImpl: do not run DFA if all assignments/initializations have the same r-value type
...
Fixes IDEA-185290 Too long time takes filling of Ctrl+Space list. (fast code insertion)
2018-01-29 16:12:55 +07:00
Tagir Valeev
2f547ca38f
RedundantStringOperationInspection: warn about append(s.substring(x, y))
...
Replaceable with append(s, x, y)
Fixes IDEA-185652 Improve StringBulder.append(s.substring(1,2)) intention
Also optimization of new expression resolution
2018-01-29 13:34:55 +07:00
peter
fb752a206f
IDEA-184991 Parameter info popup doesn't highlight current item
2018-01-27 18:01:42 +01:00
Tagir Valeev
6cb1553fdf
JavaCompletionUtil: do not add an unnecessary cast if hierarchy signature has several levels
...
Fixes IDEA-185554 Redundant cast on autocompletion
2018-01-26 15:07:46 +07:00
Tagir Valeev
97300d73f1
IDEA-185548 Inspection to remove excessive Comparator.comparing call
2018-01-26 12:27:12 +07:00
Dennis Ushakov
217cb82645
WEB-21129: parameters -> params
2018-01-25 23:15:19 +03:00
Tagir Valeev
b3a46c4960
AddOnDemandStaticImport: test-case with nested calls and comments
...
Review ID: IDEA-CR-28752
2018-01-25 16:33:34 +07:00
Roman Ivanov
6b81e567cc
MoveConditionToLoopInspection: change name : IDEA-185134
2018-01-25 16:02:05 +07:00
Tagir Valeev
6cc8936598
Compute constant expression as an inspection; minor improvements
...
Works for unary operation
Do not suggested if replacement is the same as the original code
Replacement is displayed in the quick-fix name
2018-01-25 15:43:48 +07:00
Tagir Valeev
eeb1483ed0
AddOnDemandStaticImportAction: handle comments
2018-01-25 12:05:05 +07:00
Roman Shevchenko
ab283f3cec
[java] adds language level 10
2018-01-24 15:43:12 +03:00
Tagir Valeev
e2d5de3528
ExpressionUtils#isEvaluatedAtCompileTime: fixed for casts to String (operand was not checked)
2018-01-24 14:36:20 +07:00
Tagir Valeev
d828baf6e3
LambdaAndExplicitMethodPair: Arrays.setAll -> Arrays.fill pair added
...
Allows to make IDEA-185394 in two steps
2018-01-24 13:37:55 +07:00
Anna Kozlova
04b7efb5cd
don't calculate substitution for overload resolution applicability checks
2018-01-22 17:07:38 +03:00
Alexey Kudravtsev
5f67dd2d84
quick fix to convert empty anonymous class to the plain new expression
2018-01-22 15:10:16 +03:00
Roman Ivanov
6dda38da0f
SortContentAction: trying to save layout with multiple items on line
2018-01-22 15:57:22 +07:00
Tagir Valeev
1a40a9f877
RedundantCollectionOperation: warn on if(map.containsKey(x)) map.remove(x)
...
Review ID: IDEA-CR-28150
2018-01-22 13:39:09 +07:00
Tagir Valeev
c841cb3b44
IDEA-185167 Allow to convert automatically Optional.orElse(...) to Optional.orElseGet(() -> ...)
2018-01-19 15:07:21 +07:00
Tagir Valeev
b3b019e5b7
ExpressionUtils#isSimpleExpression: consider Collections.emptyXyz as simple (they are just static field getters)
2018-01-19 15:07:20 +07:00
Bas Leijdekkers
f2e6fca603
use CommentTracker.text() with precedence argument
2018-01-18 15:19:20 +01:00
Roman Shevchenko
9f05380c48
[java] merges language level name and JDK version description
2018-01-18 13:54:45 +01:00
Dmitry Batkovich
cc8d990786
redundant throws fix should remove javadoc tag too (IDEA-185105)
2018-01-18 15:05:24 +03:00
Tagir Valeev
44585d34d9
CommentTracker: support removal of reference qualifier; used in AddSingleMemberStaticImportAction
2018-01-18 12:00:24 +07:00
Anna.Kozlova
de82603306
disable convert to functional in var context (IDEA-185038)
2018-01-17 14:08:04 +01:00
Anna Kozlova
e037922937
applicability: get call expr from anonymous class (IDEA-184965)
2018-01-15 20:27:05 +01:00
Petr Kudriavtsev
51044549a7
Additional fix for IDEABKL-4743 Automatic placement of ";" characters
...
-- added test case for typing in block comment
2018-01-15 16:57:47 +03:00
Petr Kudriavtsev
be7f7c9c68
Additional fix for IDEABKL-4743 Automatic placement of ";" characters
...
-- after review improvement 4: added test cases for string/char literals
2018-01-15 15:02:36 +03:00
Petr Kudriavtsev
5391c4ee2b
Merge branch 'master' into java_move_semicolon_to_the_end
2018-01-15 14:03:47 +03:00
peter
835ad7e380
java parameter info: revert unsafe fix for IDEA-184821, add a test (IDEA-CR-28480)
2018-01-12 19:24:07 +01:00
Anna.Kozlova
8ce7fac354
hide fixes which expose unresolved type parameters; add fixes for boxing
...
IDEA-150081
2018-01-12 18:53:17 +01:00
Petr Kudriavtsev
0a419eb1c0
Implemented IDEABKL-4743 Automatic placement of
2018-01-12 17:35:01 +03:00
Anna.Kozlova
5f5513c966
LVTI: SOE for var with conditional initializer
...
EA-114618 - SOE: CachedValueBase.getValueWithLock
2018-01-12 10:49:32 +01:00
Tagir Valeev
30b3d4a558
IDEA-184825 "Redundant String operation" inspection - rename 'Delete element' to 'Delete argument'
2018-01-12 11:44:40 +07:00
Anna.Kozlova
d74021cd16
highlight enum with abstract methods until enum initializer is added
...
IDEA-184704
2018-01-11 19:31:43 +01:00