dev.youshallnotpass.inspection.InspectionScalar 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.inspection;
import org.cactoos.Scalar;
import org.cactoos.scalar.Checked;
public final class InspectionScalar implements Scalar {
private final Scalar origin;
public InspectionScalar(final Scalar scalar) {
this.origin = scalar;
}
@Override
public T value() throws InspectionException {
return new Checked<>(
this.origin,
InspectionException::new
).value();
}
}