Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
nimakarimipour committed Oct 3, 2024
1 parent 1ab923f commit 7ae149e
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
import edu.ucr.cs.riple.injector.changes.AddAnnotation;
import edu.ucr.cs.riple.injector.changes.RemoveAnnotation;
import java.util.Set;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/** Wrapper tool used to inject annotations to the source code. */
public abstract class AnnotationInjector {
Expand All @@ -53,9 +51,7 @@ public void removeFixes(Set<Fix> fixes) {
}
Set<RemoveAnnotation> toRemove =
fixes.stream()
.flatMap(
(Function<Fix, Stream<RemoveAnnotation>>)
fix -> fix.changes.stream().map(AddAnnotation::getReverse))
.flatMap(fix -> fix.changes.stream().map(AddAnnotation::getReverse))
.collect(Collectors.toSet());
removeAnnotations(toRemove);
}
Expand Down

0 comments on commit 7ae149e

Please sign in to comment.