parent
a8e1b3c572
commit
f8d7bfc727
|
@ -83,7 +83,7 @@ public class ResetAction extends AnAction {
|
|||
|
||||
File dir = Paths.get(appData, "JetBrains", fileName).toFile();
|
||||
|
||||
return dir.delete();
|
||||
return !dir.exists() || dir.delete();
|
||||
}
|
||||
|
||||
protected File getEvalFile() {
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
public interface MyInterface {
|
||||
public void test();
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class Tsss {
|
||||
List<MyInterface> list = Arrays.asList();
|
||||
|
||||
public static void main(String[] args) {
|
||||
new Tsss().add(new MyInterface() {
|
||||
@Override
|
||||
public void test() {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void add(MyInterface obj) {
|
||||
list.add(obj);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue