From c3079a7581c71a3b554f858df367a897c4a3ba53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Papp=20=28TWiStErRob=29?= Date: Wed, 20 Mar 2024 09:41:41 +0000 Subject: [PATCH] Workaround for https://github.com/google/error-prone/issues/4335 --- .../annotations/RestrictedInheritance.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 android/feature/range/src/main/java/com/google/errorprone/annotations/RestrictedInheritance.java diff --git a/android/feature/range/src/main/java/com/google/errorprone/annotations/RestrictedInheritance.java b/android/feature/range/src/main/java/com/google/errorprone/annotations/RestrictedInheritance.java new file mode 100644 index 00000000..a3619633 --- /dev/null +++ b/android/feature/range/src/main/java/com/google/errorprone/annotations/RestrictedInheritance.java @@ -0,0 +1,20 @@ +package com.google.errorprone.annotations; + +/** + * Workaround for class file for com.google.errorprone.annotations.RestrictedInheritance not found. + * + *

+ * warning: Cannot find annotation method 'explanation()' in type 'RestrictedInheritance'
+ * warning: Cannot find annotation method 'link()' in type 'RestrictedInheritance'
+ * warning: Cannot find annotation method 'allowedOnPath()' in type 'RestrictedInheritance'
+ * warning: Cannot find annotation method 'allowlistAnnotations()' in type 'RestrictedInheritance'
+ * 
+ * + * @see Report + */ +public @interface RestrictedInheritance { + String explanation(); + String link(); + String allowedOnPath(); + Class[] allowlistAnnotations(); +}