mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
committed by
intellij-monorepo-bot
parent
481369f712
commit
76b4fd5016
+7
@@ -0,0 +1,7 @@
|
||||
public class MyClass{
|
||||
private final Integer <caret>myProperty;
|
||||
|
||||
public MyClass(Integer myProperty){
|
||||
this.myProperty = myProperty;
|
||||
}
|
||||
}
|
||||
+5
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user