[java-inspections] Experimental ModCommand-based DeletePrivateMethodFix for unused inspection

GitOrigin-RevId: efd9306505048695f1aa1de1851383e170b0c1ca
This commit is contained in:
Tagir Valeev
2024-03-12 10:57:50 +01:00
committed by intellij-monorepo-bot
parent b9d88ce85d
commit 193b2cb477
14 changed files with 323 additions and 122 deletions

View File

@@ -0,0 +1,16 @@
// "Delete method 'test()'|->... along with other private methods used only there" "true"
class X {
private void test2() {
}
public void test3() {
test4();
}
private void test4() {
}
}

View File

@@ -0,0 +1,3 @@
// "Delete method 'test()'" "true"
class X {
}

View File

@@ -0,0 +1,30 @@
// "Delete method 'test()'|->... along with other private methods used only there" "true"
class X {
private void t<caret>est() {
test1();
test2();
test3();
test4();
}
private void test1() {
test2();
test5();
}
private void test2() {
}
public void test3() {
test4();
}
private void test4() {
}
private void test5() {
}
}

View File

@@ -0,0 +1,6 @@
// "Delete method 'test()'" "true"
class X {
private void t<caret>est() {
}
}