Skip to content

Commit f0c0bbf

Browse files
author
Stephan Brandauer
committed
remove bug: needless restriction to sink examples in framework mode +examples
1 parent 07eb60d commit f0c0bbf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

java/ql/automodel/src/AutomodelFrameworkModeExtractPositiveExamples.ql

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,22 @@
77
* @id java/ml/extract-automodel-framework-positive-examples
88
* @tags internal extract automodel framework-mode positive examples
99
*/
10-
1110
private import AutomodelFrameworkModeCharacteristics
1211
private import AutomodelEndpointTypes
1312
private import AutomodelJavaUtil
1413

1514
from
16-
Endpoint endpoint, SinkType sinkType, FrameworkModeMetadataExtractor meta, DollarAtString package,
15+
Endpoint endpoint, EndpointType endpointType, FrameworkModeMetadataExtractor meta, DollarAtString package,
1716
DollarAtString type, DollarAtString subtypes, DollarAtString name, DollarAtString signature,
1817
DollarAtString input, DollarAtString output, DollarAtString parameterName,
1918
DollarAtString extensibleType
2019
where
2120
endpoint.getExtensibleType() = extensibleType and
2221
meta.hasMetadata(endpoint, package, type, subtypes, name, signature, input, output, parameterName) and
2322
// Extract positive examples of sinks belonging to the existing ATM query configurations.
24-
CharacteristicsImpl::isKnownAs(endpoint, sinkType, _)
23+
CharacteristicsImpl::isKnownAs(endpoint, endpointType, _)
2524
select endpoint,
26-
sinkType + "\nrelated locations: $@, $@." + "\nmetadata: $@, $@, $@, $@, $@, $@, $@, $@, $@.", //
25+
endpointType + "\nrelated locations: $@, $@." + "\nmetadata: $@, $@, $@, $@, $@, $@, $@, $@, $@.", //
2726
CharacteristicsImpl::getRelatedLocationOrCandidate(endpoint, MethodDoc()), "MethodDoc", //
2827
CharacteristicsImpl::getRelatedLocationOrCandidate(endpoint, ClassDoc()), "ClassDoc", //
2928
package, "package", //

0 commit comments

Comments
 (0)