diff --git a/compiler/src/main/java/dagger/internal/codegen/BindingMethodValidator.java b/compiler/src/main/java/dagger/internal/codegen/BindingMethodValidator.java index 8b6d197655b..6026e6ed125 100644 --- a/compiler/src/main/java/dagger/internal/codegen/BindingMethodValidator.java +++ b/compiler/src/main/java/dagger/internal/codegen/BindingMethodValidator.java @@ -422,7 +422,7 @@ protected enum Abstractness { */ protected enum ExceptionSuperclass { /** Methods may not declare any throwable types. */ - NONE { + NO_EXCEPTIONS { @Override protected void checkThrows( BindingMethodValidator validator, ValidationReport.Builder builder) { diff --git a/compiler/src/main/java/dagger/internal/codegen/MultibindsMethodValidator.java b/compiler/src/main/java/dagger/internal/codegen/MultibindsMethodValidator.java index f247124334b..9dfb08a321d 100644 --- a/compiler/src/main/java/dagger/internal/codegen/MultibindsMethodValidator.java +++ b/compiler/src/main/java/dagger/internal/codegen/MultibindsMethodValidator.java @@ -17,6 +17,7 @@ package dagger.internal.codegen; import static dagger.internal.codegen.BindingMethodValidator.Abstractness.MUST_BE_ABSTRACT; +import static dagger.internal.codegen.BindingMethodValidator.ExceptionSuperclass.NO_EXCEPTIONS; import static dagger.internal.codegen.ErrorMessages.MultibindsMessages.METHOD_MUST_RETURN_MAP_OR_SET; import static dagger.internal.codegen.ErrorMessages.MultibindsMessages.NO_MAP_KEY; import static dagger.internal.codegen.ErrorMessages.MultibindsMessages.PARAMETERS; @@ -62,7 +63,7 @@ protected MultibindsMethodValidator( methodAnnotation, enclosingElementAnnotations, MUST_BE_ABSTRACT, - ExceptionSuperclass.NONE); + NO_EXCEPTIONS); } @Override