mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
19 lines
507 B
Plaintext
19 lines
507 B
Plaintext
import java
|
|
import semmle.code.java.dataflow.DataFlow
|
|
import semmle.code.java.dataflow.FlowSteps
|
|
import TestUtilities.InlineFlowTest
|
|
|
|
class Model extends FluentMethod {
|
|
Model() { this.getName() = "modelledFluentMethod" }
|
|
}
|
|
|
|
class IdentityModel extends ValuePreservingMethod {
|
|
IdentityModel() { this.getName() = "modelledIdentity" }
|
|
|
|
override predicate returnsValue(int arg) { arg = 0 }
|
|
}
|
|
|
|
class HasFlowTest extends InlineFlowTest {
|
|
override DataFlow::Configuration getValueFlowConfig() { none() }
|
|
}
|