From e23d3b4369fbacfd7f077022c4dead4030e15f22 Mon Sep 17 00:00:00 2001 From: Guice Team Date: Mon, 13 Nov 2023 09:25:39 -0800 Subject: [PATCH] Internal change. PiperOrigin-RevId: 581989087 --- 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", ],