if (reg.getDegreeType() == type && reg.isActive()) {
registrations.add(reg);
}
});
}
<BUG>return FluentIterable.from(registrations);
}
private static FluentIterable<Registration> getRegistrations(Degree degree) {
</BUG>
Set<Registration> registrations = new HashSet<>();

if (reg.getDegreeType() == type && reg.isActive()) {
registrations.add(reg);
}
});
}
return registrations.stream();
}
private static Stream<Registration> getRegistrations(Degree degree) {
Set<Registration> registrations = new HashSet<>();
