I have a look at several questions e.g. In Java, should I use “final” for parameters and locals even when I don't have to? on SO and I am a little bit confused after reading the suggestions and answers.
In the project that I ma working on, there are lots of final
keywords for the method parameters in methods and interfaced as shown below:
interface:
MenuDTO findMenu(final UUID menuUuid);
implementation:
@Override
public MenuDTO findMenu(final UUID menuUuid) {
}
As far as I know, using final keyword for method parameters as shown above is pointless. So, should I remove the final
keywords from the interface methods and their implementations?