From 5db0c83dc47c7404bb92e846eaf243ffbff7773b Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Mon, 21 Oct 2024 08:38:44 +0200 Subject: [PATCH] Made it compile for java 8. --- .../java/org/meeuw/math/abstractalgebra/AlgebraicStructure.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mihxil-math/src/main/java/org/meeuw/math/abstractalgebra/AlgebraicStructure.java b/mihxil-math/src/main/java/org/meeuw/math/abstractalgebra/AlgebraicStructure.java index b3927f77..28b2c6c2 100644 --- a/mihxil-math/src/main/java/org/meeuw/math/abstractalgebra/AlgebraicStructure.java +++ b/mihxil-math/src/main/java/org/meeuw/math/abstractalgebra/AlgebraicStructure.java @@ -152,7 +152,7 @@ default void cayleyTable(AlgebraicBinaryOperator op, Consumer lineCons streamable.stream().forEach(e2 -> { line.add(op.apply(e1, e2).toString()); }); - lineConsumer.accept(line.toArray(String[]::new)); + lineConsumer.accept(line.toArray(new String[line.size()])); line.clear(); } );