Annotation Type Expires


  • @Retention(CLASS)
    @Target(METHOD)
    public @interface Expires
    For use with extension methods if a method should not be used after and including a specified JDK release. When targeting the specified JDK or later the method will not appear as an extension.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      int value  
    • Element Detail

      • value

        int value
        Returns:
        the JDK release when the method expires.