mirror of
https://github.com/github/codeql.git
synced 2026-05-27 09:31:30 +02:00
14 lines
686 B
Java
14 lines
686 B
Java
package java.io;
|
|
|
|
public class File {
|
|
public int compareTo( // $ negativeSinkExample=compareTo(File):Argument[this] negativeSourceExample=compareTo(File):Parameter[this] // modeled as neutral
|
|
File pathname // $ negativeSinkExample=compareTo(File):Argument[0] negativeSourceExample=compareTo(File):Parameter[0] // modeled as neutral
|
|
) {
|
|
return 0;
|
|
}
|
|
|
|
public boolean setLastModified(long time) { // $ sinkModelCandidate=setLastModified(long):Argument[this] sourceModelCandidate=setLastModified(long):Parameter[this] // time is not a candidate (primitive type)
|
|
return false;
|
|
} // return value is not a source candidate because it's a primitive
|
|
}
|