0

如果我们希望声纳忽略与“性能 - 从未调用私有方法» 从未调用私有方法 xxx.xxx.xxx.jdoXXX...”相关的严重违规行为,最佳实践是什么@执着的 ?

我们已经尝试了标签 //NOSONAR 和 @SuppressWarnings("all")

4

1 回答 1

1

After tangling with a similar issue from a different annotation, it appears you must put the NOSONAR tag on both the method declaration line as well as the first line of the method itself:

private void sampleMethod() { // NOSONAR
    doSomething(); // NOSONAR
}

Hope that helps.

于 2012-12-13T00:15:04.010 回答