mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 02:09:59 +07:00
[java-inspections] Experimental ModCommand-based DeletePrivateMethodFix for unused inspection
GitOrigin-RevId: efd9306505048695f1aa1de1851383e170b0c1ca
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b9d88ce85d
commit
193b2cb477
@@ -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() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
// "Delete method 'test()'" "true"
|
||||
class X {
|
||||
}
|
||||
@@ -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() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Delete method 'test()'" "true"
|
||||
class X {
|
||||
private void t<caret>est() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user