Updated Translation Question Class
Corrected Javadoc tag. Removed redundant imports. Made variables final if possible.
This commit is contained in:
parent
7cf9e2cfd6
commit
7d66185e82
1 changed files with 2 additions and 4 deletions
|
@ -2,8 +2,6 @@ package uk.ac.aber.cs22120.group20.selfassessment;
|
||||||
|
|
||||||
import uk.ac.aber.cs22120.group20.json.DictionaryEntry;
|
import uk.ac.aber.cs22120.group20.json.DictionaryEntry;
|
||||||
|
|
||||||
import java.util.LinkedList;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class used to create a MatchTheMeaning Question.
|
* Class used to create a MatchTheMeaning Question.
|
||||||
* @author Brad Corbett [brc9]
|
* @author Brad Corbett [brc9]
|
||||||
|
@ -15,11 +13,11 @@ import java.util.LinkedList;
|
||||||
* @author Tom Perry [top1]
|
* @author Tom Perry [top1]
|
||||||
* @author Waylen Watts [ncw]
|
* @author Waylen Watts [ncw]
|
||||||
* @version 0.1 Initial development
|
* @version 0.1 Initial development
|
||||||
* @See Question
|
* @see Question
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class TranslationQuestion extends Question {
|
public class TranslationQuestion extends Question {
|
||||||
private DictionaryEntry correctAnswer;
|
private final DictionaryEntry correctAnswer;
|
||||||
|
|
||||||
public TranslationQuestion(DictionaryEntry correctAnswer){
|
public TranslationQuestion(DictionaryEntry correctAnswer){
|
||||||
this.correctAnswer = correctAnswer;
|
this.correctAnswer = correctAnswer;
|
||||||
|
|
Reference in a new issue