Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MapKey error message to reference new auto-value artifacts. #3116

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions java/dagger/internal/codegen/validation/MapKeyValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package dagger.internal.codegen.validation;


import androidx.room.compiler.processing.XAnnotationKt;
import androidx.room.compiler.processing.XMethodElement;
import androidx.room.compiler.processing.XTypeElement;
Expand All @@ -27,9 +26,7 @@
import java.util.List;
import javax.inject.Inject;

/**
* A validator for {@link MapKey} annotations.
*/
/** A validator for {@link MapKey} annotations. */
// TODO(dpb,gak): Should unwrapped MapKeys be required to have their single member be named "value"?
public final class MapKeyValidator {
private final DaggerElements elements;
Expand All @@ -55,7 +52,10 @@ public ValidationReport validate(XTypeElement element) {
} else if (autoAnnotationIsMissing()) {
builder.addError(
"@AutoAnnotation is a necessary dependency if @MapKey(unwrapValue = false). Add a "
+ "dependency on com.google.auto.value:auto-value:<current version>");
+ "dependency for the annotation, "
+ "\"com.google.auto.value:auto-value-annotations:<current version>\", "
+ "and the annotation processor, "
+ "\"com.google.auto.value:auto-value:<current version>\"");
}
return builder.build();
}
Expand Down