Skip to content

Commit f4e8774

Browse files
committed
Refactoring
Signed-off-by: Dominik Schadow <dominikschadow@googlemail.com>
1 parent d9504e7 commit f4e8774

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Ch07_XSS/src/main/java/de/dominikschadow/webappsecurity/beans/SearchController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ public List<Customer> getCustomers() {
5858

5959
public String search() {
6060
if (StringUtils.isEmpty(customerName)) {
61-
Map requestMap = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();
62-
customerName = (String) requestMap.get("customerName");
61+
Map<String, String> requestMap = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();
62+
customerName = requestMap.get("customerName");
6363
}
6464

6565
Customer search = new Customer();

0 commit comments

Comments
 (0)