Activity Forums Salesforce® Discussions What is the use of @deprecated in Salesforce ?

  • Anuj

    Member
    April 27, 2020 at 1:11 pm

    Use the deprecated annotation to identify methods, classes, exceptions, enums, interfaces, or variables that can no longer be referenced in subsequent releases of the managed package in which they reside. This is useful when you are refactoring code in managed packages as the requirements evolve

  • Shweta

    Member
    April 27, 2020 at 1:24 pm

    Deprecated annotation is used in the context of packages in salesforce and it suggests the class, exceptions, enums, interfaces, variables, or methods that can no more in use or will not be distributed in further releases if its part of a package.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos