tests for IDEA-CR-29186

This commit is contained in:
Alexey Kudravtsev
2018-02-13 14:19:12 +03:00
parent d20f061afe
commit 95ffe16d50
3 changed files with 40 additions and 2 deletions
@@ -0,0 +1,20 @@
// "Replace method call with Test.mmm2" "true"
class Test {
static void example() {
Test t = new Test();
t.mmm2("");
}
/**
* @deprecated use {@link #mmm1(int)} or {@link #mmm2(String)} instead
*/
void mmm(String t) {
}
void mmm1(int string) {
}
void mmm2(String string) {
}
}
@@ -0,0 +1,20 @@
// "Replace method call with Test.mmm2" "true"
class Test {
static void example() {
Test t = new Test();
t.m<caret>mm("");
}
/**
* @deprecated use {@link #mmm1(int)} or {@link #mmm2(String)} instead
*/
void mmm(String t) {
}
void mmm1(int string) {
}
void mmm2(String string) {
}
}