Open yeikel opened 2 years ago
Possibly dangerous and against "do not harm"
public List<String> getList(){ List<String> l = new ArrayList<>(); l.add("hello"); return l; } List<String> l = getList(); if (l == null) { // will never happen after this transformation }
https://rules.sonarsource.com/java/quickfix/RSPEC-1168
yes, lots of potential for a transformation that results in downstream bugs.
Possibly dangerous and against "do not harm"
https://rules.sonarsource.com/java/quickfix/RSPEC-1168