Hi all,
I've to modify an existing Java application and I'm a bit lost ...
Actually one public class manages 2 tables and one of its methods calls the constructor of another public class and passes those tables as parameters.
The constructor of this second public class does several things and among all its actions it calls a private method and needs to pass those tables as parameters .. But I get an error saying "local variable xxx is accessed within inner class; needs to be declared final". But I don't want to declare them 'final' since they may be modified within the private method (some rows can be removed from the tables on certain conditions).
How can I do ?
Thx in advance !
I've to modify an existing Java application and I'm a bit lost ...
Actually one public class manages 2 tables and one of its methods calls the constructor of another public class and passes those tables as parameters.
The constructor of this second public class does several things and among all its actions it calls a private method and needs to pass those tables as parameters .. But I get an error saying "local variable xxx is accessed within inner class; needs to be declared final". But I don't want to declare them 'final' since they may be modified within the private method (some rows can be removed from the tables on certain conditions).
How can I do ?
Thx in advance !