NextcloudServer.java 668 B

123456789101112131415161718192021222324
  1. /*
  2. * Nextcloud - Android Client
  3. *
  4. * SPDX-FileCopyrightText: 2017-2018 Tobias Kaminsky <tobias@kaminsky.me>
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. package com.owncloud.android.utils;
  8. import java.lang.annotation.ElementType;
  9. import java.lang.annotation.Retention;
  10. import java.lang.annotation.RetentionPolicy;
  11. import java.lang.annotation.Target;
  12. /**
  13. * Defines min and max server version. Useful to find not needed code, e.g. if annotated max=12 and last supported
  14. * version is 13 the code can be removed.
  15. */
  16. @Retention(RetentionPolicy.SOURCE)
  17. @Target(ElementType.METHOD)
  18. public @interface NextcloudServer {
  19. int min() default -1;
  20. int max();
  21. }