From 36ff122d2582cf9831e755510f76a67f30832388 Mon Sep 17 00:00:00 2001 From: Sam Berlin Date: Mon, 1 May 2023 12:40:32 -0700 Subject: [PATCH] Rewrite jakarta singleton -> c.g.i Singleton for the SPI too. PiperOrigin-RevId: 528546653 --- core/src/com/google/inject/internal/Scoping.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/com/google/inject/internal/Scoping.java b/core/src/com/google/inject/internal/Scoping.java index 334092eaec..12ea703a64 100644 --- a/core/src/com/google/inject/internal/Scoping.java +++ b/core/src/com/google/inject/internal/Scoping.java @@ -160,7 +160,9 @@ public void applyTo(ScopedBindingBuilder scopedBindingBuilder) { }; public static Scoping forAnnotation(final Class scopingAnnotation) { - if (scopingAnnotation == Singleton.class || scopingAnnotation == javax.inject.Singleton.class) { + if (scopingAnnotation == Singleton.class + || scopingAnnotation == javax.inject.Singleton.class + || scopingAnnotation == jakarta.inject.Singleton.class) { return SINGLETON_ANNOTATION; }