Skip to main content

Removed unused private method (Sonar)

sonar:java/remove-unused-private-method-s1144​

ImportanceReview GuidanceRequires Scanning Tool
HIGHMerge After ReviewYes (Sonar)

This change removes unused private methods. Dead code can cause confusion and increase the mental load of maintainers. It can increase your maintenance burden as you have to keep that unused code compiling when you make sweeping changes to the APIs used within the method.

Our changes look something like this:

-   private String getUuid(){
- return uuid;
- }

References​