Removed file attribute from warning class