Skip to content

Commit 9e4f2f8

Browse files
committed
Java: Don't use default dataflow in libs imported by default.
1 parent 01fd161 commit 9e4f2f8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

java/ql/src/semmle/code/java/frameworks/google/GoogleHttpClientApi.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import java
22
import semmle.code.java.Serializability
33
import semmle.code.java.dataflow.DataFlow
4+
import semmle.code.java.dataflow.DataFlow5
45

56
/** The method `parseAs` in `com.google.api.client.http.HttpResponse`. */
67
private class ParseAsMethod extends Method {
@@ -10,7 +11,7 @@ private class ParseAsMethod extends Method {
1011
}
1112
}
1213

13-
private class TypeLiteralToParseAsFlowConfiguration extends DataFlow::Configuration {
14+
private class TypeLiteralToParseAsFlowConfiguration extends DataFlow5::Configuration {
1415
TypeLiteralToParseAsFlowConfiguration() {
1516
this = "GoogleHttpClientApi::TypeLiteralToParseAsFlowConfiguration"
1617
}

java/ql/src/semmle/code/java/frameworks/jackson/JacksonSerializability.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import java
77
import semmle.code.java.Serializability
88
import semmle.code.java.Reflection
99
import semmle.code.java.dataflow.DataFlow
10+
import semmle.code.java.dataflow.DataFlow5
1011

1112
class JacksonJSONIgnoreAnnotation extends NonReflectiveAnnotation {
1213
JacksonJSONIgnoreAnnotation() {
@@ -52,7 +53,7 @@ library class FieldReferencedJacksonSerializableType extends JacksonSerializable
5253

5354
abstract class JacksonDeserializableType extends Type { }
5455

55-
private class TypeLiteralToJacksonDatabindFlowConfiguration extends DataFlow::Configuration {
56+
private class TypeLiteralToJacksonDatabindFlowConfiguration extends DataFlow5::Configuration {
5657
TypeLiteralToJacksonDatabindFlowConfiguration() {
5758
this = "TypeLiteralToJacksonDatabindFlowConfiguration"
5859
}

0 commit comments

Comments
 (0)