Because the variable is used within an anonymous inner class and it must be final. If I use a regular reference then I can't change it's value.