Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
oxkitsune committed Sep 19, 2022
1 parent 1acd937 commit 0f0786e
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import com.google.errorprone.fixes.SuggestedFix;
import com.google.errorprone.matchers.Description;
import com.google.errorprone.matchers.Matcher;
import com.google.errorprone.matchers.method.MethodMatchers;
import com.google.errorprone.util.ASTHelpers;
import com.sun.source.tree.AnnotationTree;
import com.sun.source.tree.ClassTree;
Expand Down Expand Up @@ -55,7 +54,6 @@
tags = SIMPLIFICATION)
public final class JUnitValueSource extends BugChecker implements MethodTreeMatcher {
private static final long serialVersionUID = 1L;

private static final Matcher<ExpressionTree> STREAM_OF_ARGUMENTS =
staticMethod().onClass(Stream.class.getName()).named("of");
private static final Matcher<MethodTree> VALUE_SOURCE_CANDIDATE =
Expand Down Expand Up @@ -95,7 +93,6 @@ private Description tryConstructValueSourceFix(
.filter(MethodInvocationTree.class::isInstance)
.map(MethodInvocationTree.class::cast)
.filter(m -> STREAM_OF_ARGUMENTS.matches(m, state));

if (methodInvocationTree.isEmpty()) {
return Description.NO_MATCH;
}
Expand Down

0 comments on commit 0f0786e

Please sign in to comment.