From f136a03e45e5e82cb0732006a4f5c8db86ad2ab5 Mon Sep 17 00:00:00 2001 From: Max Bureck Date: Wed, 4 Jul 2018 10:47:07 +0200 Subject: [PATCH] Moved some TODOs to GitHub issue #15, deleted obsolete TODOs. --- .../fokus/xtensions/iteration/ArrayExtensions.xtend | 2 -- .../iteration/PrimitiveIteratorExtensions.xtend | 11 +---------- .../fokus/xtensions/optional/OptionalExtensions.java | 2 +- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/bundles/de.fhg.fokus.xtensions/src/de/fhg/fokus/xtensions/iteration/ArrayExtensions.xtend b/bundles/de.fhg.fokus.xtensions/src/de/fhg/fokus/xtensions/iteration/ArrayExtensions.xtend index f371472..2ead64a 100644 --- a/bundles/de.fhg.fokus.xtensions/src/de/fhg/fokus/xtensions/iteration/ArrayExtensions.xtend +++ b/bundles/de.fhg.fokus.xtensions/src/de/fhg/fokus/xtensions/iteration/ArrayExtensions.xtend @@ -8,8 +8,6 @@ import static extension java.util.Objects.* */ class ArrayExtensions { - // TODO make class and forEach method public when API is documented and tested throughly for edge cases - private new() { throw new IllegalStateException() } diff --git a/bundles/de.fhg.fokus.xtensions/src/de/fhg/fokus/xtensions/iteration/PrimitiveIteratorExtensions.xtend b/bundles/de.fhg.fokus.xtensions/src/de/fhg/fokus/xtensions/iteration/PrimitiveIteratorExtensions.xtend index 22b5ee3..ebb4c8a 100644 --- a/bundles/de.fhg.fokus.xtensions/src/de/fhg/fokus/xtensions/iteration/PrimitiveIteratorExtensions.xtend +++ b/bundles/de.fhg.fokus.xtensions/src/de/fhg/fokus/xtensions/iteration/PrimitiveIteratorExtensions.xtend @@ -27,22 +27,13 @@ import java.util.stream.StreamSupport * The class is not intended to be instantiated. */ final class PrimitiveIteratorExtensions { - - // static def OptionalInt reduce(PrimitiveIterator.OfInt,IntBinaryOperator op) - // static def int reduce(PrimitiveIterator.OfInt, int identity, IntBinaryOperator op) - + // * min, // * max, // * average, // * sum​, // * count, - // * anyMatch(XXXPredicate), - // * allMatch(XXXPredicate)/noneMatch(XXXPredicate) - // * findFirst​(XXXPredicate) - // * findFirst - // * filter(XXXPredicate) - private new() { throw new IllegalStateException("PrimitiveIteratorExtensions not intended to be instantiated") } diff --git a/bundles/de.fhg.fokus.xtensions/src/de/fhg/fokus/xtensions/optional/OptionalExtensions.java b/bundles/de.fhg.fokus.xtensions/src/de/fhg/fokus/xtensions/optional/OptionalExtensions.java index 943f765..314f335 100644 --- a/bundles/de.fhg.fokus.xtensions/src/de/fhg/fokus/xtensions/optional/OptionalExtensions.java +++ b/bundles/de.fhg.fokus.xtensions/src/de/fhg/fokus/xtensions/optional/OptionalExtensions.java @@ -67,7 +67,7 @@ public final class OptionalExtensions { private OptionalExtensions() { throw new IllegalStateException("OptionalExtensions is not allowed to be instantiated"); } - // TODO is any of the following functionality actually usefull??? + // TODO is any of the following functionality actually useful??? // /** // * This function is basically a factory function for {@link Optional},