Fix major Sonar issue

Added @Override annotation.