From 5916281dd46f5407c32e064a5eb5bac2551a94c2 Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Mon, 21 Oct 2024 08:37:34 +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 495c565f..b3927f77 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 @@ -145,7 +145,7 @@ default void cayleyTable(AlgebraicBinaryOperator op, Consumer lineCons Streamable streamable = (Streamable) this; streamable.stream().forEach(e -> line.add(e.toString())); - lineConsumer.accept(line.toArray(String[]::new)); + lineConsumer.accept(line.toArray(new String[line.size()])); line.clear(); streamable.stream().forEach(e1 -> { line.add(e1.toString());