You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2024/07/08 11:17:05 UTC

(commons-numbers) 03/07: Drop TODO comment

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git

commit 1351b74dd937c381dd1113f1908afae394554563
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Mon Jul 8 11:40:31 2024 +0100

    Drop TODO comment
    
    Leave the source unchanged as it matches the reference implementation.
---
 .../org/apache/commons/numbers/examples/jmh/arrays/KthSelector.java     | 2 --
 1 file changed, 2 deletions(-)

diff --git a/commons-numbers-examples/examples-jmh/src/main/java/org/apache/commons/numbers/examples/jmh/arrays/KthSelector.java b/commons-numbers-examples/examples-jmh/src/main/java/org/apache/commons/numbers/examples/jmh/arrays/KthSelector.java
index ef7ab5f5..d9652052 100644
--- a/commons-numbers-examples/examples-jmh/src/main/java/org/apache/commons/numbers/examples/jmh/arrays/KthSelector.java
+++ b/commons-numbers-examples/examples-jmh/src/main/java/org/apache/commons/numbers/examples/jmh/arrays/KthSelector.java
@@ -1666,8 +1666,6 @@ class KthSelector {
         // values closer to the edge. The middle will be sorted by quicksort.
         // 13 = 27 / 2 where 27 is the threshold for quicksort.
         if (dist < (minSelectSize >>> 1)) {
-            // TODO: Determine if this is needed? The original paper
-            // does not comment its purpose.
             div++;
         }
         //swap(a, less - 1, left)