minor: privatised some vars

This commit is contained in:
hrj 2020-07-04 01:21:02 +05:30
parent 79c7dcdb56
commit b300fa2178

View File

@ -9,11 +9,11 @@ import java.awt.image.BufferedImage
import java.awt.{Graphics2D,Color} import java.awt.{Graphics2D,Color}
class LabelCaptcha extends ChallengeProvider { class LabelCaptcha extends ChallengeProvider {
var knownFiles = new File("known").list.toList private var knownFiles = new File("known").list.toList
var unknownFiles = new File("unknown").list.toList private var unknownFiles = new File("unknown").list.toList
var tokenImagePair = Map[String, ImagePair]() private var unknownAnswers = Map[String, Map[String, Int]]()
var unknownAnswers = Map[String, Map[String, Int]]() private var total = Map[String, Int]()
var total = Map[String, Int]()
for(file <- unknownFiles) { for(file <- unknownFiles) {
unknownAnswers += file -> Map[String, Int]() unknownAnswers += file -> Map[String, Int]()
total += file -> 0 total += file -> 0