Minor syntax cleanup
git-svn-id: http://webgoat.googlecode.com/svn/trunk@44 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
parent
a394e58093
commit
857799f855
@ -183,7 +183,7 @@ public class Challenge2Screen extends LessonAdapter
|
|||||||
// pull the USER_COOKIE from the cookies
|
// pull the USER_COOKIE from the cookies
|
||||||
String user = getCookie(s);
|
String user = getCookie(s);
|
||||||
String query = "SELECT * FROM user_data WHERE last_name = '" + user +"'";
|
String query = "SELECT * FROM user_data WHERE last_name = '" + user +"'";
|
||||||
Vector v = new Vector();
|
Vector<String> v = new Vector<String>();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ResultSet results = statement3.executeQuery( query );
|
ResultSet results = statement3.executeQuery( query );
|
||||||
|
@ -48,7 +48,7 @@ public class ListStaff extends DefaultLessonAction
|
|||||||
{
|
{
|
||||||
// Query the database for all employees "owned" by the given employee
|
// Query the database for all employees "owned" by the given employee
|
||||||
|
|
||||||
List employees = new Vector();
|
List<EmployeeStub> employees = new Vector<EmployeeStub>();
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -92,7 +92,7 @@ public class ListStaff extends DefaultLessonAction
|
|||||||
{
|
{
|
||||||
// Query the database for all employees "owned" by the given employee
|
// Query the database for all employees "owned" by the given employee
|
||||||
|
|
||||||
List employees = new Vector();
|
List<EmployeeStub> employees = new Vector<EmployeeStub>();
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -166,7 +166,7 @@ public class Login extends DefaultLessonAction
|
|||||||
|
|
||||||
public List getAllEmployees(WebSession s)
|
public List getAllEmployees(WebSession s)
|
||||||
{
|
{
|
||||||
List employees = new Vector();
|
List<EmployeeStub> employees = new Vector<EmployeeStub>();
|
||||||
|
|
||||||
// Query the database for all roles the given employee belongs to
|
// Query the database for all roles the given employee belongs to
|
||||||
// Query the database for all employees "owned" by these roles
|
// Query the database for all employees "owned" by these roles
|
||||||
|
@ -70,7 +70,7 @@ public class StoredXss extends LessonAdapter
|
|||||||
statement.setString(2, title);
|
statement.setString(2, title);
|
||||||
statement.setString(3, message);
|
statement.setString(3, message);
|
||||||
statement.setString(4, s.getUserName());
|
statement.setString(4, s.getUserName());
|
||||||
ResultSet results = statement.executeQuery();
|
statement.executeQuery();
|
||||||
}
|
}
|
||||||
catch ( Exception e )
|
catch ( Exception e )
|
||||||
{
|
{
|
||||||
|
@ -103,7 +103,7 @@ public class ViewDatabase extends LessonAdapter
|
|||||||
*/
|
*/
|
||||||
protected List getHints()
|
protected List getHints()
|
||||||
{
|
{
|
||||||
List hints = new ArrayList();
|
List<String> hints = new ArrayList<String>();
|
||||||
hints.add( "There are no hints defined" );
|
hints.add( "There are no hints defined" );
|
||||||
|
|
||||||
return hints;
|
return hints;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user