Files
codeql/java/ql/test/utils/modelgenerator/dataflow/p/ImplOfExternalSPI.java

19 lines
385 B
Java

package p;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
public class ImplOfExternalSPI extends AbstractImplOfExternalSPI {
@Override
public boolean accept(File pathname) {
try {
Files.createFile(pathname.toPath());
} catch (IOException e) {
e.printStackTrace();
}
return false;
}
}