Skip to content

Commit 3f54800

Browse files
committed
Fix error in 1 method where I returned the wrong variable value, and 1
small edit to a comment.
1 parent a2f5c34 commit 3f54800

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugin/src/main/java/org/owasp/benchmarkutils/score/TestCaseResult.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public void setActualResultTestID(String testCaseFileName) {
150150
if (ExpectedResultsProvider.isBenchmarkStyleScoring()) {
151151
// Sets the test ID to the test case # or -1 if not a match
152152
// We format the int with leading zeros so it will sort the results array properly when
153-
// its converted to a String
153+
// it's converted to a String
154154
this.testID =
155155
String.format(
156156
TestCaseResult.TEST_ID_PAD_INT_wZEROS,

plugin/src/main/java/org/owasp/benchmarkutils/score/service/CountsPerCWE.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ public int getTPCount() {
3232
}
3333

3434
public int getFPCount() {
35-
return truePositiveCount;
35+
return falsePositiveCount;
3636
}
3737
}

0 commit comments

Comments
 (0)