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", ],