Set<TypeRef> visited = new HashSet<>(); return hierarchyStream(analyzer) .flatMap(c -> c.typeStream(analyzer, Clazz::interfaces, visited)) .map(TypeRef::getDottedOnly) .anyMatch(instr::matches) ^ instr.isNegated(); return typeStream(analyzer, Clazz::annotations, null) // .map(TypeRef::getFQN) .anyMatch(instr::matches) ^ instr.isNegated(); return typeStream(analyzer, Clazz::annotations, new HashSet<>()) // .map(TypeRef::getFQN) .anyMatch(instr::matches) ^ instr.isNegated(); .flatMap(c -> c.typeStream(analyzer, Clazz::annotations, null)) .map(TypeRef::getFQN) .anyMatch(instr::matches) ^ instr.isNegated(); Set<TypeRef> visited = new HashSet<>(); return hierarchyStream(analyzer) // .flatMap(c -> c.typeStream(analyzer, Clazz::annotations, visited)) .map(TypeRef::getFQN) .anyMatch(instr::matches) ^ instr.isNegated();
Set<TypeRef> visited = new HashSet<>(); return hierarchyStream(analyzer) .flatMap(c -> c.typeStream(analyzer, Clazz::interfaces, visited)) .map(TypeRef::getDottedOnly) .anyMatch(instr::matches) ^ instr.isNegated(); return typeStream(analyzer, Clazz::annotations, null) // .map(TypeRef::getFQN) .anyMatch(instr::matches) ^ instr.isNegated(); return typeStream(analyzer, Clazz::annotations, new HashSet<>()) // .map(TypeRef::getFQN) .anyMatch(instr::matches) ^ instr.isNegated(); .flatMap(c -> c.typeStream(analyzer, Clazz::annotations, null)) .map(TypeRef::getFQN) .anyMatch(instr::matches) ^ instr.isNegated(); Set<TypeRef> visited = new HashSet<>(); return hierarchyStream(analyzer) // .flatMap(c -> c.typeStream(analyzer, Clazz::annotations, visited)) .map(TypeRef::getFQN) .anyMatch(instr::matches) ^ instr.isNegated();