Hints are declared now
git-svn-id: http://webgoat.googlecode.com/svn/trunk/webgoat@304 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
parent
9130ab3e22
commit
ff380181cd
@ -142,13 +142,14 @@ public abstract class LessonAdapter extends AbstractLesson
|
|||||||
{
|
{
|
||||||
List<String> hints = new ArrayList<String>();
|
List<String> hints = new ArrayList<String>();
|
||||||
hints.add("There are no hints defined.");
|
hints.add("There are no hints defined.");
|
||||||
|
|
||||||
return hints;
|
return hints;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getHint(WebSession s, int hintNumber)
|
public String getHint(WebSession s, int hintNumber)
|
||||||
{
|
{
|
||||||
return (String) getHints(s).get(hintNumber);
|
String hint = "Hint: ";
|
||||||
|
hint += (String) getHints(s).get(hintNumber);
|
||||||
|
return hint;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user