Skip to content

Commit f0dc179

Browse files
authored
Update Benchmark00207.java
Manually fix CodeQL issue in autofix: “Benchmark00207.java:[80,39] error: local variables referenced from an inner class must be final or effectively final”
1 parent 3a243fe commit f0dc179

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/org/owasp/benchmark/testcode/Benchmark00207.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response)
5656
org.apache.commons.codec.binary.Base64.encodeBase64(
5757
param.getBytes())));
5858
}
59+
final String bar2 = bar;
5960

6061
try {
6162
java.io.FileInputStream file =
@@ -77,7 +78,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response)
7778
@Override
7879
public Object resolveVariable(javax.xml.namespace.QName variableName) {
7980
if ("emplid".equals(variableName.getLocalPart())) {
80-
return bar;
81+
return bar2;
8182
}
8283
return null;
8384
}

0 commit comments

Comments
 (0)