报告不必要的、不会增加方法的可理解性的局部变量,包括:

示例:


  boolean yes() {
    boolean b = true;
    return b;
  }

在应用快速修复后:


  boolean yes() {
    return true;
  }
  

配置检查: