Removed @Override
Unified code-format with added "eclipse-formatter.xml" profile.
Refactored the weight calculation for better reuse.