Signed-off-by: pengzhile <pengzhile@gmail.com>
pull/2/MERGE
pengzhile 2020-07-01 10:37:24 +08:00
parent a8e1b3c572
commit f8d7bfc727
3 changed files with 24 additions and 1 deletions

View File

@ -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() {

View File

@ -0,0 +1,3 @@
public interface MyInterface {
public void test();
}

20
src/test/java/Tsss.java Normal file
View File

@ -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);
}
}