@ Override public Map < Class < ? extends Annotation > , Set < Class < ? > > > getAnnotatedClasses ( final Set uris ) { return annotations ; // TODO: Should this be limited by URI }
use a plain Set and it should work for both versions .