Skip to content

Commit d09ba68

Browse files
committed
Update ParasoftReader.java
Minor bug fix.
1 parent 3284f80 commit d09ba68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/owasp/benchmark/score/parsers/ParasoftReader.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private TestCaseResult parseStdViol(Node flaw) {
9494

9595
String testcase = getAttributeValue( "locFile", flaw );
9696
testcase = testcase.substring( testcase.lastIndexOf('/') );
97-
if ( testcase.startsWith( "Benchmark" ) ) {
97+
if ( testcase.startsWith( "BenchmarkTest" ) ) {
9898
String testno = testcase.substring( "BenchmarkTest".length(), testcase.length() -5 );
9999
tcr.setNumber( Integer.parseInt( testno ) );
100100
return tcr;
@@ -126,7 +126,7 @@ private TestCaseResult parseFlowViol(Node flaw) {
126126

127127
String testcase = getAttributeValue( "locFile", flaw );
128128
testcase = testcase.substring( testcase.lastIndexOf('/') + 1 );
129-
if ( testcase.startsWith( "Benchmark" ) ) {
129+
if ( testcase.startsWith( "BenchmarkTest" ) ) {
130130
String testno = testcase.substring( "BenchmarkTest".length(), testcase.length() -5 );
131131
tcr.setNumber( Integer.parseInt( testno ) );
132132
return tcr;
@@ -168,4 +168,4 @@ private int cweLookup(String cat) {
168168

169169
}
170170

171-
171+

0 commit comments

Comments
 (0)