extensions/assistedinject/src/com/google/inject/assistedinject/Parameter.java
public Key<?> fixAnnotations(Key<?> key) {
    return key.getAnnotation() == null
        ? key
        : Key.get(key.getTypeLiteral(), key.getAnnotation().annotationType());
  }
public Key<?> fixAnnotations(Key<?> key) {
    return key.getAnnotation() == null
        ? key
        : Key.get(key.getTypeLiteral(), key.getAnnotation().annotationType());
  }
public Key < ? > fixAnnotations ( Key < ? > key ) { return key . getAnnotation ( ) == null ? key : Key . get ( key . getTypeLiteral ( ) , key . getAnnotation ( ) . annotationType ( ) ) ; }
Replace annotation instances with annotation types, this is only appropriate for testing if a
key is bound and not for injecting.

<p>See Guice bug 125, https://github.com/google/guice/issues/125
Replace annotation instances with annotation types this is only appropriate for testing if a key is bound and not for injecting .