From f3359b4be6ad8073677afa61b3b23c181590c6f7 Mon Sep 17 00:00:00 2001 From: Guice Team Date: Wed, 27 Sep 2023 15:21:45 -0700 Subject: [PATCH] Internal change. PiperOrigin-RevId: 568975957 --- core/src/com/google/inject/internal/KotlinSupport.java | 5 +++++ .../com/google/inject/internal/KotlinSupportInterface.java | 3 +++ core/test/com/google/inject/BUILD | 1 + 3 files changed, 9 insertions(+) diff --git a/core/src/com/google/inject/internal/KotlinSupport.java b/core/src/com/google/inject/internal/KotlinSupport.java index be510dc844..a11a799aee 100644 --- a/core/src/com/google/inject/internal/KotlinSupport.java +++ b/core/src/com/google/inject/internal/KotlinSupport.java @@ -69,5 +69,10 @@ public void checkConstructorParameterAnnotations(Constructor constructor, Err public boolean isLocalClass(Class clazz) { return false; } + + @Override + public boolean isValueClass(Class clazz) { + return false; + } } } diff --git a/core/src/com/google/inject/internal/KotlinSupportInterface.java b/core/src/com/google/inject/internal/KotlinSupportInterface.java index 69894ad1ba..7d76dc4bd0 100644 --- a/core/src/com/google/inject/internal/KotlinSupportInterface.java +++ b/core/src/com/google/inject/internal/KotlinSupportInterface.java @@ -30,4 +30,7 @@ public interface KotlinSupportInterface { /** Returns whether the {@code clazz} is a local Kotlin class. */ boolean isLocalClass(Class clazz); + + /** Returns whether the {@code clazz} is a Kotlin value class. */ + boolean isValueClass(Class clazz); } diff --git a/core/test/com/google/inject/BUILD b/core/test/com/google/inject/BUILD index d04ff72762..8a77800434 100644 --- a/core/test/com/google/inject/BUILD +++ b/core/test/com/google/inject/BUILD @@ -84,6 +84,7 @@ java_library( deps = [ ":add_opens_tests", ":tests", + "//core/src/com/google/inject", "//core/test/com/googlecode/guice:tests", "//third_party/java/junit", ],