Fixed imports

This commit is contained in:
mayhew64 2016-11-15 07:26:17 -05:00
parent dad7bdba92
commit 00f0ee8942
2 changed files with 9 additions and 21 deletions

View File

@ -1,13 +1,11 @@
package org.owasp.webgoat.plugin;
import com.beust.jcommander.internal.Lists;
import java.util.ArrayList;
import java.util.List;
import org.owasp.webgoat.lessons.Category;
import org.owasp.webgoat.lessons.NewLesson;
import java.util.List;
import java.util.ArrayList;
import org.owasp.webgoat.i18n.LabelManager;
/**
* ************************************************************************************************
* This file is part of WebGoat, an Open Web Application Security Project utility. For details,

View File

@ -1,26 +1,17 @@
package org.owasp.webgoat.plugin;
import org.owasp.webgoat.lessons.AssignmentEndpoint;
import org.owasp.webgoat.lessons.LessonEndpointMapping;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import org.owasp.webgoat.lessons.Assignment;
import org.owasp.webgoat.lessons.model.AttackResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
/***************************************************************************************************
@ -53,8 +44,7 @@ import java.util.List;
* @author Bruce Mayhew <a href="http://code.google.com/p/webgoat">WebGoat</a>
* @created October 28, 2003
*/
@LessonEndpointMapping
public class SqlInjectionLesson extends AssignmentEndpoint {
public class SqlInjectionLesson extends Assignment {
@RequestMapping(method = RequestMethod.POST)
public @ResponseBody AttackResult completed(@RequestParam String person, HttpServletRequest request) throws IOException {