Update ExampleService.java


Avoid passing parameters to methods or constructors without actually referencing them in the method body.