public boolean differs ( FieldInfo oldInfo , FieldInfo newInfo ) { if ( Tools . isFieldAccessChange ( oldInfo . getAccess ( ) , newInfo . getAccess ( ) ) ) return true ; if ( oldInfo . getValue ( ) == null || newInfo . getValue ( ) == null ) { if ( oldInfo . getValue ( ) != newInfo . getValue ( ) ) return true ; } else if ( ! oldInfo . getValue ( ) . equals ( newInfo . getValue ( ) ) ) return true ; return false ; }
Check if there is a change between two versions of a field . Returns true if the access flags differ or if the inital value of the field differs .