Class DeprecationUtils

java.lang.Object
software.amazon.awssdk.codegen.poet.model.DeprecationUtils

public final class DeprecationUtils extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.squareup.javapoet.MethodSpec
    checkDeprecated(MemberModel member, com.squareup.javapoet.MethodSpec method)
    If a given member is modeled as deprecated, add the Deprecated annotation to the method and, if the method already has existing Javadoc, append a section with the @deprecated tag.
    static List<com.squareup.javapoet.MethodSpec>
    checkDeprecated(MemberModel member, List<com.squareup.javapoet.MethodSpec> methods)
     
    static com.squareup.javapoet.MethodSpec
    checkDeprecated(OperationModel operation, com.squareup.javapoet.MethodSpec method)
    If a given operation is modeled as deprecated, add the Deprecated annotation to the method and, if the method already has existing Javadoc, append a section with the @deprecated tag.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • checkDeprecated

      public static com.squareup.javapoet.MethodSpec checkDeprecated(MemberModel member, com.squareup.javapoet.MethodSpec method)
      If a given member is modeled as deprecated, add the Deprecated annotation to the method and, if the method already has existing Javadoc, append a section with the @deprecated tag.
    • checkDeprecated

      public static com.squareup.javapoet.MethodSpec checkDeprecated(OperationModel operation, com.squareup.javapoet.MethodSpec method)
      If a given operation is modeled as deprecated, add the Deprecated annotation to the method and, if the method already has existing Javadoc, append a section with the @deprecated tag.
    • checkDeprecated

      public static List<com.squareup.javapoet.MethodSpec> checkDeprecated(MemberModel member, List<com.squareup.javapoet.MethodSpec> methods)