mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 19:02:13 +07:00
[kotlin] "Suspicious callable reference as the only lambda element" quickfix: simplify message
GitOrigin-RevId: 50147e0f600299d371564146834b513f3af7ea0e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
fbedf5b8e4
commit
fe7f08e616
@@ -1867,7 +1867,7 @@ function.01=Function "{0}"
|
||||
object.0=Object "{0}"
|
||||
interface=Interface
|
||||
constructor=Constructor
|
||||
move.suspicious.callable.reference.into.parentheses=Move suspicious callable reference into parentheses '()'
|
||||
move.reference.into.parentheses=Move reference into parentheses
|
||||
local.variable=Local variable
|
||||
const.property=Const property
|
||||
private.property=Private property
|
||||
|
||||
+1
-1
@@ -86,7 +86,7 @@ class SuspiciousCallableReferenceInLambdaInspection : AbstractKotlinInspection()
|
||||
}
|
||||
|
||||
class MoveIntoParenthesesIntention : ConvertLambdaToReferenceIntention(
|
||||
KotlinBundle.lazyMessage("move.suspicious.callable.reference.into.parentheses")
|
||||
KotlinBundle.lazyMessage("move.reference.into.parentheses")
|
||||
) {
|
||||
override fun buildReferenceText(lambdaExpression: KtLambdaExpression): String? {
|
||||
val callableReferenceExpression =
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// FIX: Move suspicious callable reference into parentheses '()'
|
||||
// FIX: Move reference into parentheses
|
||||
// WITH_STDLIB
|
||||
|
||||
fun foo() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// FIX: Move suspicious callable reference into parentheses '()'
|
||||
// FIX: Move reference into parentheses
|
||||
// WITH_STDLIB
|
||||
|
||||
fun foo() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// FIX: Move suspicious callable reference into parentheses '()'
|
||||
// FIX: Move reference into parentheses
|
||||
// WITH_STDLIB
|
||||
|
||||
fun foo(bar: Int) {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// FIX: Move suspicious callable reference into parentheses '()'
|
||||
// FIX: Move reference into parentheses
|
||||
// WITH_STDLIB
|
||||
|
||||
fun foo(bar: Int) {
|
||||
|
||||
Reference in New Issue
Block a user