Add "Redundant nullable return type" inspection

^KT-19321 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-08-16 01:06:20 +02:00
committed by Vladimir Dolzhenko
parent d703284d01
commit 8420c0b7c7
23 changed files with 297 additions and 0 deletions
@@ -0,0 +1,5 @@
<html>
<body>
This inspections reports functions/variables with nullable return type always returns non-null.
</body>
</html>
@@ -2261,6 +2261,9 @@ redundant.qualifier.unnecessary.non.direct.parent.class.qualifier=Unnecessary no
fix.add.exception.to.throws=Add ''{0}''
fix.add.eq.eq.true=Add '== true'
inspection.replace.with.ignore.case.equals.display.name=Replace with 'equals(..., ignoreCase = true)'
inspection.redundant.nullable.return.type.display.name=Redundant nullable return type
0.always.returns.non.null.type=''{0}'' always returns non-null type
0.is.always.non.null.type=''{0}'' is always non-null type
inspection.simplifiable.scope.function.display.name=Scope function with nested forEach can be simplified
nested.1.call.in.0.could.be.simplified.to.2=Nested ''{1}'' call in ''{0}'' could be simplified to {2}