diff --git a/src/main/java/org/cactoos/scalar/AvgOf.java b/src/main/java/org/cactoos/scalar/AvgOf.java index b3301c2130..68a9563dc7 100644 --- a/src/main/java/org/cactoos/scalar/AvgOf.java +++ b/src/main/java/org/cactoos/scalar/AvgOf.java @@ -25,9 +25,11 @@ import java.math.BigDecimal; import java.math.MathContext; +import java.util.List; import org.cactoos.Scalar; import org.cactoos.iterable.IterableOf; import org.cactoos.iterable.Mapped; +import org.cactoos.list.ListOf; /** * Average of numbers. @@ -50,16 +52,7 @@ *
There is no thread-safety guarantee.
*
* @since 0.24
- * @checkstyle ExecutableStatementCountCheck (500 lines)
- * @checkstyle NPathComplexityCheck (500 lines)
*/
-@SuppressWarnings(
- {
- "PMD.CallSuperInConstructor",
- "PMD.OnlyOneConstructorShouldDoInitialization",
- "PMD.ConstructorOnlyInitializesOrCallOtherConstructors"
- }
-)
public final class AvgOf extends NumberEnvelope {
/**
@@ -136,22 +129,17 @@ public AvgOf(final Scalar