报告不必要的
public
修饰符,因为 Groovy 类和方法默认为
public
。
示例:
public class Foo{ public void bar(){ } }
在应用快速修复后:
class Foo{ void bar(){ } }