NextcloudServer.java 508 B

12345678910111213141516171819
  1. package com.owncloud.android.utils;
  2. import java.lang.annotation.ElementType;
  3. import java.lang.annotation.Retention;
  4. import java.lang.annotation.RetentionPolicy;
  5. import java.lang.annotation.Target;
  6. /**
  7. * Defines min and max server version. Useful to find not needed code, e.g. if annotated max=12 and last supported
  8. * version is 13 the code can be removed.
  9. */
  10. @Retention(RetentionPolicy.SOURCE)
  11. @Target(ElementType.METHOD)
  12. public @interface NextcloudServer {
  13. int min() default -1;
  14. int max();
  15. }