dev.youshallnotpass.inspections.allfinal.nonfinals.ExcludeInterfaceMethodParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-inspections Show documentation
Show all versions of java-inspections Show documentation
Java inspections library for youshallnotpass
The newest version!
package dev.youshallnotpass.inspections.allfinal.nonfinals;
import dev.youshallnotpass.inspection.InspectionException;
import dev.youshallnotpass.inspection.Violations;
import org.cactoos.iterable.Filtered;
import org.cactoos.list.ListOf;
import java.util.List;
public final class ExcludeInterfaceMethodParams implements Violations {
private final Violations origin;
public ExcludeInterfaceMethodParams(final Violations origin) {
this.origin = origin;
}
@Override
public List asList() throws InspectionException {
return new ListOf<>(
new Filtered<>(
(final Nonfinal valuation) -> !valuation.isInterfaceMethodParam(),
origin.asList()
)
);
}
}