Fix analyzer warning: Attributes on method implementation and its declaration must match,