79468507

Date: 2025-02-26 04:15:11
Score: 1
Natty:
Report link

If you have fields in your singleton, you got to initialize them in the fields themselves and not in the constructor

class MyClass {

private List<String> keys = new ArrayList<>();

private MyClass() {}

}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: robertomessabrasil