我正在使用IntelliJ IDEA的Grails項目。運行Grails 2.3.5。當在一個領域類使用dirtyPropertyNames,的IntelliJ給我一個警告,「不能解析符號‘dirtyPropertyNames’」dirtyPropertyNames「無法解析符號」IntelliJ
這裏是我的代碼:
def getDirtyProperties(User user) {
def dirtyProperties = user.dirtyPropertyNames
return dirtyProperties
}
什麼這裏是我的問題?謝謝。
謝謝。無論如何要讓這個警告消失嗎? – AnthonyM
您應該將其報告爲其錯誤跟蹤器中的錯誤。我相信這會很容易增加人們對這是一個有效的域類方法的認識 –