Questions tagged as 'sonarlint'

1
answer

SonarLint x Java GC, cancel or not object at the end of execution?

I'm passing SonarLint on a somewhat old application and fixing several "problems", but I came across a code snippet like: public void fazerAlgo(final String param) { MeuObjeto m = new MeuObjeto(); m.setVar(param.toLowerCase()); m...
asked by 25.07.2018 / 13:14
1
answer

SonarLint, complexity of the "equals ()" method

SonarLint for Eclipse, accuses the error:    Refactor this method to reduce its Cognitive Complexity from 64 to the   15 allowed.       Rewrite this method to reduce your cognitive complexity from 64   for 15 allowed That is, my method h...
asked by 13.08.2018 / 15:13
1
answer

SonarLint x Java GC, cancel or not object at the end of execution?

I'm passing SonarLint on a somewhat old application and fixing several "problems", but I came across a code snippet like: public void fazerAlgo(final String param) { MeuObjeto m = new MeuObjeto(); m.setVar(param.toLowerCase()); m...
asked by 25.07.2018 / 13:14