core/src/com/google/inject/internal/Annotations.java
public static Annotation canonicalizeIfNamed(Annotation annotation) {
    if (annotation instanceof javax.inject.Named) {
      return Names.named(((javax.inject.Named) annotation).value());
    } else {
      return annotation;
    }
  }
public static Annotation canonicalizeIfNamed(Annotation annotation) {
    if (annotation instanceof javax.inject.Named) {
      return Names.named(((javax.inject.Named) annotation).value());
    } else {
      return annotation;
    }
  }
public static Annotation canonicalizeIfNamed ( Annotation annotation ) { if ( annotation instanceof javax . inject . Named ) { return Names . named ( ( ( javax . inject . Named ) annotation ) . value ( ) ) ; } else { return annotation ; } }
If the annotation is an instance of {@code javax.inject.Named}, canonicalizes to
com.google.guice.name.Named. Returns the given annotation otherwise.
If the annotation is an instance of {