Skip to content

Commit ec35783

Browse files
author
Stephan Brandauer
committed
remove superfluous class in EndpointCharacteristics hierarchy
1 parent d285700 commit ec35783

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointCharacteristics.qll

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -135,28 +135,19 @@ private class NosqlInjectionSinkCharacteristic extends EndpointCharacteristic {
135135
* Characteristics that are indicative of not being a sink of any type.
136136
*/
137137

138-
/**
139-
* A characteristic that is an indicator of not being a sink of any type, because it's an argument that has a manual
140-
* model.
141-
*/
142-
abstract private class OtherModeledArgumentCharacteristic extends EndpointCharacteristic {
143-
bindingset[this]
144-
OtherModeledArgumentCharacteristic() { any() }
145-
}
146-
147138
/**
148139
* A characteristic that is an indicator of not being a sink of any type, because it's an argument to a function of a
149140
* builtin object.
150141
*/
151-
abstract private class ArgumentToBuiltinFunctionCharacteristic extends OtherModeledArgumentCharacteristic {
142+
abstract private class ArgumentToBuiltinFunctionCharacteristic extends EndpointCharacteristic {
152143
bindingset[this]
153144
ArgumentToBuiltinFunctionCharacteristic() { any() }
154145
}
155146

156147
/**
157148
* A high-confidence characteristic that indicates that an endpoint is not a sink of any type.
158149
*/
159-
abstract private class NotASinkCharacteristic extends OtherModeledArgumentCharacteristic {
150+
abstract private class NotASinkCharacteristic extends EndpointCharacteristic {
160151
bindingset[this]
161152
NotASinkCharacteristic() { any() }
162153

@@ -175,7 +166,7 @@ abstract private class NotASinkCharacteristic extends OtherModeledArgumentCharac
175166
* TODO: This class is currently not private, because the current extraction logic explicitly avoids including these
176167
* endpoints in the training data. We might want to change this in the future.
177168
*/
178-
abstract class LikelyNotASinkCharacteristic extends OtherModeledArgumentCharacteristic {
169+
abstract class LikelyNotASinkCharacteristic extends EndpointCharacteristic {
179170
bindingset[this]
180171
LikelyNotASinkCharacteristic() { any() }
181172

0 commit comments

Comments
 (0)