mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
Avoid generating models for classes implementing external SPI (e.g. `FileFilter`). Keep `toString` models intact as they're commonly used as taint-propagation method (e.g. see `Joiner`).
13 lines
221 B
Java
13 lines
221 B
Java
package p;
|
|
|
|
import java.io.File;
|
|
import java.io.FileFilter;
|
|
|
|
public abstract class AbstractImplOfExternalSPI implements FileFilter {
|
|
|
|
@Override
|
|
public boolean accept(File pathname) {
|
|
return false;
|
|
}
|
|
|
|
} |