Inspectopedia
 
2024.3

Class member can have 'private' visibility

Info
New
Last modified: 03 December 2024

Reports declarations that can be made private to follow the encapsulation principle.

Example:

After the quick-fix is applied (considering there are no usages of url outside of Service class):