General cleanup of warnings, fixed a few method scope issues and incorrect use of static references to categories
git-svn-id: http://webgoat.googlecode.com/svn/trunk@30 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
@ -20,7 +20,7 @@ import org.owasp.webgoat.lessons.Category;
|
||||
* under the GPL. You should read and accept the LICENSE before you use, modify and/or redistribute
|
||||
* this software.
|
||||
*
|
||||
* @author Jeff Williams <a href="http://www.aspectsecurity.com">Aspect Security</a>
|
||||
* @author Bruce Mayhew <a href="http://code.google.com/p/webgoat">WebGoat</a>
|
||||
* @created October 28, 2003
|
||||
*/
|
||||
public class Course
|
||||
@ -223,7 +223,7 @@ public class Course
|
||||
*/
|
||||
public List getCategories()
|
||||
{
|
||||
List categories = new ArrayList();
|
||||
List<Category> categories = new ArrayList<Category>();
|
||||
Iterator iter = lessons.iterator();
|
||||
|
||||
while ( iter.hasNext() )
|
||||
@ -333,7 +333,7 @@ public class Course
|
||||
*/
|
||||
private List getLessons( Category category, List roles )
|
||||
{
|
||||
List lessonList = new ArrayList();
|
||||
List<AbstractLesson> lessonList = new ArrayList<AbstractLesson>();
|
||||
|
||||
Iterator iter = lessons.iterator();
|
||||
while ( iter.hasNext() )
|
||||
|
@ -1,16 +1,15 @@
|
||||
package org.owasp.webgoat.session;
|
||||
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.util.Properties;
|
||||
|
||||
|
||||
/**
|
||||
* Description of the Class
|
||||
*
|
||||
* @author Bruce Mayhew
|
||||
* @author Bruce Mayhew <a href="http://code.google.com/p/webgoat">WebGoat</a>
|
||||
* @created October 29, 2003
|
||||
*/
|
||||
public class LessonTracker
|
||||
|
@ -15,7 +15,7 @@ import org.apache.catalina.users.MemoryUserDatabase;
|
||||
* under the GPL. You should read and accept the LICENSE before you use, modify and/or redistribute
|
||||
* this software.
|
||||
*
|
||||
* @author Jeff Williams <a href="http://www.aspectsecurity.com">Aspect Security</a>
|
||||
* @author Bruce Mayhew <a href="http://code.google.com/p/webgoat">WebGoat</a>
|
||||
* @created October 29, 2003
|
||||
*/
|
||||
|
||||
|
@ -337,7 +337,7 @@ public class WebSession
|
||||
|
||||
public List getRoles()
|
||||
{
|
||||
List roles = new ArrayList();
|
||||
List<String> roles = new ArrayList<String>();
|
||||
|
||||
roles.add(AbstractLesson.USER_ROLE);
|
||||
if (isAdmin())
|
||||
@ -440,7 +440,7 @@ public class WebSession
|
||||
|
||||
public String getRestartLink()
|
||||
{
|
||||
List parameters = new ArrayList();
|
||||
List<String> parameters = new ArrayList<String>();
|
||||
|
||||
String screenValue = request.getParameter(SCREEN);
|
||||
if (screenValue != null)
|
||||
|
Reference in New Issue
Block a user