Remove trivial condition in Enqueuer
Change-Id: Ic6c8954b7329944e272bd36cf0d7a85f29a8eed0
diff --git a/src/main/java/com/android/tools/r8/shaking/Enqueuer.java b/src/main/java/com/android/tools/r8/shaking/Enqueuer.java
index 0689533..4acc47d 100644
--- a/src/main/java/com/android/tools/r8/shaking/Enqueuer.java
+++ b/src/main/java/com/android/tools/r8/shaking/Enqueuer.java
@@ -2474,11 +2474,9 @@
}
}
markParameterAndReturnTypesAsLive(method);
- if (appView.definitionFor(method.method.holder).isProgramClass()) {
- processAnnotations(method, method.annotations.annotations);
- method.parameterAnnotationsList.forEachAnnotation(
- annotation -> processAnnotation(method, annotation));
- }
+ processAnnotations(method, method.annotations.annotations);
+ method.parameterAnnotationsList.forEachAnnotation(
+ annotation -> processAnnotation(method, annotation));
method.registerCodeReferences(new UseRegistry(options.itemFactory, clazz, method));
// Add all dependent members to the workqueue.