From 0438fe19cbe6ea5ef06304c47e9f8d0e671796ed Mon Sep 17 00:00:00 2001 From: annarailton Date: Tue, 29 Mar 2022 16:26:48 +0100 Subject: [PATCH] Change `NotASinkType` to `NegativeType` Fixes https://github.com/github/ml-ql-adaptive-threat-modeling/issues/1819 --- .../experimental/adaptivethreatmodeling/EndpointTypes.qll | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointTypes.qll b/javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointTypes.qll index 4f4bc2782ab..aa625b12862 100644 --- a/javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointTypes.qll +++ b/javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointTypes.qll @@ -6,7 +6,7 @@ * representation of each of these classes. */ newtype TEndpointType = - TNotASinkType() or + TNegativeType() or TXssSinkType() or TNosqlInjectionSinkType() or TSqlInjectionSinkType() or @@ -21,9 +21,9 @@ abstract class EndpointType extends TEndpointType { string toString() { result = getDescription() } } -/** The `NotASink` class that can be predicted by endpoint scoring models. */ -class NotASinkType extends EndpointType, TNotASinkType { - override string getDescription() { result = "NotASink" } +/** The `Negative` class that can be predicted by endpoint scoring models. */ +class NegativeType extends EndpointType, TNegativeType { + override string getDescription() { result = "Negative" } override int getEncoding() { result = 0 } }