How many ways can i deprecate a method in java?