Skip to content

BindingToUnqualifiedCommonType support for jakarta.inject.Qualifier #5537

@ben-manes

Description

@ben-manes

Guice 7.0 only supports Jakarta, and I believe Google internally has a code transform to keep using the javax type. The jakarta.inject.Qualifier should be added to the rule and optionally the javax type removed.

private static final Matcher<MethodTree> PROVIDES_UNQUALIFIED_CONSTANT =
allOf(
annotations(AT_LEAST_ONE, isType(GUICE_PROVIDES_ANNOTATION)),
not(
annotations(
AT_LEAST_ONE,
Matchers.<AnnotationTree>anyOf(
symbolHasAnnotation(InjectMatchers.GUICE_BINDING_ANNOTATION),
symbolHasAnnotation(InjectMatchers.JAVAX_QUALIFIER_ANNOTATION)))),
methodReturns(IS_SIMPLE_TYPE));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions