我正在使用IntelliJ IDEA的Grails项目。运行Grails 2.3.5。当在一个领域类使用dirtyPropertyNames,的IntelliJ给我一个警告,“不能解析符号‘dirtyPropertyNames’”dirtyPropertyNames“无法解析符号”IntelliJ
这里是我的代码:
def getDirtyProperties(User user) {
def dirtyProperties = user.dirtyPropertyNames
return dirtyProperties
}
什么这里是我的问题?谢谢。
谢谢。无论如何要让这个警告消失吗? – AnthonyM
您应该将其报告为其错误跟踪器中的错误。我相信这会很容易增加人们对这是一个有效的域类方法的认识 –