Dmitry Batkovich
c3bc554410
add javadoc intention: fix for multiple field declaration IDEA-177456
2017-08-11 16:01:23 +03:00
Tagir Valeev
afc902c436
IDEA-162390 Detect unnecessary Optional wrapping
2017-08-11 16:47:27 +07:00
Tagir Valeev
130a641011
Better methodref support in DFA; Stream.generate() inlining support
2017-08-11 15:50:58 +07:00
Anna.Kozlova
56b585bc1d
cleanup redundant throws clause
2017-08-11 10:37:38 +02:00
Tagir Valeev
1e9f078fa4
Quick-fix for NPE in method reference to convert to lambda and add ?: (IDEA-176699)
2017-08-11 11:17:57 +07:00
Tagir Valeev
f770591058
EnumSet.of().stream() -> Stream.of(): Added test for different enums
...
Review ID: IDEA-CR-23729
2017-08-11 09:55:52 +07:00
Anna.Kozlova
2295a78716
pull up: don't conflict about same method in super if it's abstract (IDEA-177360)
2017-08-10 14:27:35 +02:00
Tagir Valeev
610882b62b
IDEA-176977 EnumSet.of().stream() can be simplified to Stream.of()
2017-08-10 15:16:15 +07:00
Tagir Valeev
0426dbb411
IDEA-177306 False Positive: reporting "useless" Optional map
2017-08-10 13:14:43 +07:00
peter
45f9ede9ac
don't add annotation attribute braces when typing comma inside string (IDEA-177182)
2017-08-09 18:40:09 +02:00
Anna.Kozlova
3d1ba95725
unhandled exception: shrink the highlighted range (IDEA-177234)
2017-08-09 18:38:29 +02:00
Anna.Kozlova
415b8f08ef
redundant throws: check exceptions in field initializers (IDEA-177240)
2017-08-09 18:38:29 +02:00
Dmitry Batkovich
c4f2ca674c
AddMissingRequiredAnnotationParametersFix: handle nameless parameter as value (EA-105427)
2017-08-09 12:48:39 +03:00
Dmitry Batkovich
52cf50c461
redundant throws inspection:
...
1. global and local inspections are merged to one
2. local inspection reports "non-final" methods (if cheap enough) IDEA-177230
2017-08-09 12:14:26 +03:00
Anna.Kozlova
4000eda3da
junit tests: keep output directories
2017-08-08 20:03:47 +02:00
Anna.Kozlova
6d1f106889
support Rename Reference on invalid method call (IDEA-176918)
2017-08-08 17:42:39 +02:00
Anna.Kozlova
b846335cd0
update test framework to ensure compiled before search for tests
2017-08-08 17:42:39 +02:00
peter
4dc12ddb60
update AnnotateMethodTest data
2017-08-08 16:41:09 +02:00
Anna.Kozlova
f67eaef468
trivial functional expression fix for empty lambda code block
2017-08-08 13:28:41 +02:00
Tagir Valeev
a454ab1c33
Quick-fix to insert .filter(Objects::nonNull) (IDEA-176699)
2017-08-08 12:14:36 +07:00
peter
a0fc4d3828
IDEA-177198 Incorrect quick-fix for @NotNull/@Nullable problems inspection
2017-08-07 18:29:40 +02:00
Anna.Kozlova
dec0d16597
overload resolution: adapt return types before comparing (IDEA-177065)
2017-08-07 18:28:03 +02:00
Anna.Kozlova
fe61fc50e0
extend trivial method reference to support lambdas, convertible to method references
2017-08-07 16:00:10 +02:00
Tagir Valeev
3910c47718
IDEA-176720 Simplify Stream.of(xyz).anyMatch(predicate) to predicate.test(xyz)
2017-08-07 15:58:13 +07:00
Anna Kozlova
ba81ad7cd1
NPE (IDEA-176934)
2017-08-07 08:12:25 +02:00
Tagir Valeev
ca998ab469
IDEA-177054 Wrong warning on AssertJUnit.assertNotNull() from testng
2017-08-07 11:44:21 +07:00
Anna Kozlova
873df28d36
anonym -> lambda: disable for strictfp
2017-08-07 06:37:45 +02:00
Dmitry Batkovich
ca93a04a0a
simplify AnnotateMethodFix
2017-08-03 15:42:34 +03:00
Roman Ivanov
1003727653
Merge remote-tracking branch 'origin/master'
2017-08-02 13:11:56 +07:00
Roman Ivanov
72bab18a58
support min/max in stream api migration, rearrange tests
2017-08-02 12:57:45 +07:00
Tagir Valeev
8fdfa4e608
OptionalInlining: more flatMap tests
2017-07-28 18:20:58 +07:00
Tagir Valeev
8e831610d8
Guava optional in OptionalChainInliner
...
Removed special handling of optionals in StandardInstructionVisitor; removed updateStackTopClosures (unnecessary anymore)
2017-07-28 14:22:32 +07:00
Tagir Valeev
fd144c0949
CFGBuilder refactoring: dereferenceCheck replaced with checkNotNull
2017-07-28 14:22:31 +07:00
Tagir Valeev
eaec99dcce
DataFlowInspection: npe fixes fixed
...
Fixes duplicating NPE expression are disabled when expression has side-effect (not when it's a method call)
Parentheses added to generated code when necessary
2017-07-27 19:06:34 +07:00
Tagir Valeev
4882d4a589
IDEA-176650 Provide a quick fix of "can produce NPE" that wraps qualifier with Obejcts.requireNonNull
2017-07-27 18:48:43 +07:00
Tagir Valeev
66eabcc11e
CFG inlining: IgnoreNullabilityOnPrimitiveCast.java test
2017-07-27 11:57:01 +07:00
Tagir Valeev
ff3e0fc007
CFG inlining: initial Stream support & full method reference support
2017-07-27 11:57:00 +07:00
Tagir Valeev
efa7ff2509
CFG inliners: fixes according to review IDEA-CR-22449
...
1. CFGBuilder moved as top-level class
2. Complex path in DupInstruction removed (replaced with SpliceInstruction)
3. test174759 renamed to testTwoOptionalInteraction
4. PsiUtil.deparenthesizeExpression used
5. OptionalChainInliner: made constants private
6. LightVariableBuilder used to create temporary variables
2017-07-27 11:56:59 +07:00
Tagir Valeev
c269298451
Fix IDEA-173235 Control flow analysis does not know about 'Collections.empty...()' and 'Collections.singleton...()'
2017-07-27 11:56:58 +07:00
Tagir Valeev
5cac0baf4a
Optional inlining: dereference check; find equivalent variable state for derived variables
2017-07-27 11:56:58 +07:00
Tagir Valeev
7d7828f932
Lambda inlining: handle try-catches in lambda
2017-07-27 11:56:56 +07:00
Tagir Valeev
890a2c90eb
CFG inlining preliminary implementation
...
Lambda calls like ((cast) x -> y).run() inlined
j.u.Optional chains inlined (with basic methodRef support)
2017-07-27 11:56:56 +07:00
peter
792940cf8e
java completion: fix shadowed type parameter duplication
2017-07-26 12:34:10 +02:00
peter
a7821e5bdf
java completion: don't suggest class keywords in array variable initializer (IDEA-CR-23174)
2017-07-26 11:24:39 +02:00
peter
99dec77a5a
disable "insert new" fix on invalid code
2017-07-25 13:15:10 +02:00
Bas Leijdekkers
8d6551408c
fix ControlFlowUtil.canCompleteNormally() regression (IDEA-141259)
2017-07-24 19:34:17 +02:00
Bas Leijdekkers
aa515b08a1
generate "constant".equals(variable) code when converting switch to if (IDEA-157516)
2017-07-24 19:34:16 +02:00
Kyle Thomson and peter
bf4df4a979
Enhance Java builder completion for superclasses and generics
2017-07-24 15:27:58 +02:00
peter
6c171f8e54
fix yet another PSI internals exception while updating "add on demand static import" intention
2017-07-22 08:08:18 +02:00
Anna.Kozlova
5e66047b75
testdata for IDEA-176407
2017-07-21 20:35:21 +02:00