-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"Replace 'invoke' with direct call" intention: fix false positive whe…
…n function is not operator #KT-37977 Fixed
- Loading branch information
1 parent
e0da30f
commit 2f29b38
Showing
7 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
idea/testData/intentions/conventionNameCalls/replaceInvoke/java.1.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
public class JavaClass { | ||
void invoke() {} | ||
} |
3 changes: 3 additions & 0 deletions
3
idea/testData/intentions/conventionNameCalls/replaceInvoke/java.1.java.after
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
public class JavaClass { | ||
void invoke() {} | ||
} |
3 changes: 3 additions & 0 deletions
3
idea/testData/intentions/conventionNameCalls/replaceInvoke/java.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fun main() { | ||
JavaClass().<caret>invoke() | ||
} |
3 changes: 3 additions & 0 deletions
3
idea/testData/intentions/conventionNameCalls/replaceInvoke/java.kt.after
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fun main() { | ||
JavaClass()() | ||
} |
8 changes: 8 additions & 0 deletions
8
idea/testData/intentions/conventionNameCalls/replaceInvoke/notOperator.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// IS_APPLICABLE: false | ||
class C { | ||
fun invoke() {} | ||
} | ||
|
||
fun main() { | ||
C().<caret>invoke() | ||
} |
10 changes: 10 additions & 0 deletions
10
idea/tests/org/jetbrains/kotlin/idea/intentions/IntentionTestGenerated.java
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.