Change deprecated method stub syntax