Skip to content

Commit 94bc47a

Browse files
committed
Swap order of supertypes
1 parent 3850734 commit 94bc47a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

go/ql/lib/semmle/go/frameworks/K8sIoApimachineryPkgRuntime.qll

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module K8sIoApimachineryPkgRuntime {
5050
}
5151
}
5252

53-
private class DecoderDecode extends Method, UnmarshalingFunction::Range {
53+
private class DecoderDecode extends UnmarshalingFunction::Range, Method {
5454
DecoderDecode() {
5555
this.implements(packagePath(), "Decoder", "Decode") or
5656
this.hasQualifiedName(packagePath(), "WithoutVersionDecoder", "Decode")
@@ -95,7 +95,7 @@ module K8sIoApimachineryPkgRuntime {
9595
}
9696
}
9797

98-
private class ParameterCodecDecodeParameters extends Method, UnmarshalingFunction::Range {
98+
private class ParameterCodecDecodeParameters extends UnmarshalingFunction::Range, Method {
9999
ParameterCodecDecodeParameters() {
100100
this.implements(packagePath(), "ParameterCodec", "DecodeParameters")
101101
}
@@ -110,7 +110,7 @@ module K8sIoApimachineryPkgRuntime {
110110
}
111111
}
112112

113-
private class ParameterCodecEncodeParameters extends Method, MarshalingFunction::Range {
113+
private class ParameterCodecEncodeParameters extends MarshalingFunction::Range, Method {
114114
ParameterCodecEncodeParameters() {
115115
this.implements(packagePath(), "ParameterCodec", "EncodeParameters")
116116
}
@@ -125,7 +125,7 @@ module K8sIoApimachineryPkgRuntime {
125125
}
126126
}
127127

128-
private class ProtobufMarshallerMarshalTo extends Method, MarshalingFunction::Range {
128+
private class ProtobufMarshallerMarshalTo extends MarshalingFunction::Range, Method {
129129
ProtobufMarshallerMarshalTo() {
130130
this.implements(packagePath(), "ProtobufMarshaller", "MarshalTo") or
131131
this.implements(packagePath(), "ProtobufReverseMarshaller", "MarshalToSizedBuffer")
@@ -138,7 +138,7 @@ module K8sIoApimachineryPkgRuntime {
138138
override string getFormat() { result = "protobuf" }
139139
}
140140

141-
private class RawExtensionMarshal extends Method, MarshalingFunction::Range {
141+
private class RawExtensionMarshal extends MarshalingFunction::Range, Method {
142142
RawExtensionMarshal() { this.hasQualifiedName(packagePath(), "RawExtension", "Marshal") }
143143

144144
override DataFlow::FunctionInput getAnInput() { result.isReceiver() }
@@ -148,7 +148,7 @@ module K8sIoApimachineryPkgRuntime {
148148
override string getFormat() { result = "protobuf" }
149149
}
150150

151-
private class RawExtensionUnmarshal extends Method, UnmarshalingFunction::Range {
151+
private class RawExtensionUnmarshal extends UnmarshalingFunction::Range, Method {
152152
RawExtensionUnmarshal() { this.hasQualifiedName(packagePath(), "RawExtension", "Unmarshal") }
153153

154154
override DataFlow::FunctionInput getAnInput() { result.isReceiver() }
@@ -158,7 +158,7 @@ module K8sIoApimachineryPkgRuntime {
158158
override string getFormat() { result = "protobuf" }
159159
}
160160

161-
private class UnknownMarshal extends Method, MarshalingFunction::Range {
161+
private class UnknownMarshal extends MarshalingFunction::Range, Method {
162162
string methodName;
163163

164164
UnknownMarshal() {
@@ -177,7 +177,7 @@ module K8sIoApimachineryPkgRuntime {
177177
override string getFormat() { result = "protobuf" }
178178
}
179179

180-
private class UnknownUnmarshal extends Method, UnmarshalingFunction::Range {
180+
private class UnknownUnmarshal extends UnmarshalingFunction::Range, Method {
181181
UnknownUnmarshal() { this.hasQualifiedName(packagePath(), "Unknown", "Unmarshal") }
182182

183183
override DataFlow::FunctionInput getAnInput() { result.isReceiver() }

go/ql/lib/semmle/go/security/CleartextLoggingCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ module CleartextLogging {
162162
}
163163

164164
/** A call that might return a password. */
165-
private class CallPasswordSource extends DataFlow::CallNode, Source {
165+
private class CallPasswordSource extends Source, DataFlow::CallNode {
166166
string name;
167167

168168
CallPasswordSource() {

0 commit comments

Comments
 (0)