Remove the volatile keyword from final field in the user defined class