"Cannot refer to a non-final variable" fix

> Cannot refer to a non-final variable inside an inner class defined in
a different method
Merge branch 'master' of https://github.com/cs2103aug2014-t15-1j/main