类 DeprecationUtils

java.lang.Object
spring.turbo.util.DeprecationUtils

public final class DeprecationUtils extends Object
代码过期性检查工具
从以下版本开始:
1.0.4
作者:
应卓
  • 方法详细资料

    • isDeprecated

      public boolean isDeprecated(AnnotatedElement annotationSupplier)
      检查AnnotatedElement实例是否已经过期
      参数:
      annotationSupplier - {code AnnotatedElement}实例
      返回:
      已过期时返回 true 否则返回 false
      另请参阅:
    • isDeprecated

      public boolean isDeprecated(Method annotationSupplier)
      检查方法是否已经过期
      参数:
      annotationSupplier - 方法
      返回:
      已过期时返回 true 否则返回 false
    • isDeprecated

      public boolean isDeprecated(Class<?> annotationSupplier)
      检查类型是否已经过期
      参数:
      annotationSupplier - 类型
      返回:
      已过期时返回 true 否则返回 false