Refactored code with "Type parameter explicitly extends 'java.lang.Object'" code smell
Removed unnecessary semicolons