Skip to content

Commit 36db4b7

Browse files
committed
Slight improvement to codeblocksupport output when there is no dataflow for a test case.
1 parent 23439aa commit 36db4b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugin/src/main/java/org/owasp/benchmarkutils/tools/CodeBlockSupportResults.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public String toString() {
8282
// Optionally add the vuln type if this codeblock is a SINK
8383
+ ("SINK".equals(type) ? " (" + vulnCat + ")" : "")
8484
+ ", name: "
85-
+ name
85+
+ (("DATAFLOW".equals(type) && "".equals(name)) ? "NoDataFlow" : name)
8686
+ ", truePositive: "
8787
+ truePositive
8888
+ ", True Positive - used: "
@@ -103,7 +103,7 @@ public String toStringIgnoringUnsupportedSinks() {
103103
// Optionally add the vuln type if this codeblock is a SINK
104104
+ ("SINK".equals(type) ? " (" + vulnCat + ")" : "")
105105
+ ", name: "
106-
+ name
106+
+ (("DATAFLOW".equals(type) && "".equals(name)) ? "NoDataFlow" : name)
107107
+ ", truePositive: "
108108
+ truePositive
109109
+ ", Ignoring unsupported sinks: TPs - used: "
@@ -124,7 +124,7 @@ public String toStringForFalsePositiveSinks() {
124124
// Optionally add the vuln type if this codeblock is a SINK
125125
+ ("SINK".equals(type) ? " (" + vulnCat + ")" : "")
126126
+ ", name: "
127-
+ name
127+
+ (("DATAFLOW".equals(type) && "".equals(name)) ? "NoDataFlow" : name)
128128
+ ", truePositive: "
129129
+ truePositive
130130
/* + ", True Positive - used: "

0 commit comments

Comments
 (0)