IDEA-175196: add regression test for safeDelete'ing a field, which is only used once as a parameter of a constructor

GitOrigin-RevId: 9d8f1ea9d431d1e39afc077dbff21bd19d178a8a
This commit is contained in:
Jonas Ladner
2023-06-19 09:20:34 +00:00
committed by intellij-monorepo-bot
parent 481369f712
commit 76b4fd5016
3 changed files with 16 additions and 0 deletions
@@ -0,0 +1,7 @@
public class MyClass{
private final Integer <caret>myProperty;
public MyClass(Integer myProperty){
this.myProperty = myProperty;
}
}
@@ -0,0 +1,5 @@
public class MyClass{
public MyClass(){
}
}
@@ -187,6 +187,10 @@ public class SafeDeleteTest extends MultiFileTestCase {
doTest("UserFlags");
}
public void testSafeDeleteOfFieldAndParameterOfConstructor() throws Exception {
doSingleFileTest();
}
public void testSafeDeleteStaticImports() {
doTest("A");
}