You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2020/12/11 00:02:17 UTC

[groovy] branch master updated: Tweak comments

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

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new e97d308  Tweak comments
e97d308 is described below

commit e97d308e4095bca5ef7c93f8462d1f473eaa3472
Author: Daniel Sun <su...@apache.org>
AuthorDate: Fri Dec 11 08:01:59 2020 +0800

    Tweak comments
---
 .../org/apache/groovy/ginq/provider/collection/runtime/Queryable.java | 4 ++--
 .../groovy/ginq/provider/collection/runtime/QueryableCollection.java  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/Queryable.java b/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/Queryable.java
index fb201ea..9673dd2 100644
--- a/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/Queryable.java
+++ b/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/Queryable.java
@@ -102,8 +102,8 @@ public interface Queryable<T> {
      * Note: Inner hash join requires equijoin predicate, e.g. {@code on a == b}
      *
      * @param queryable another {@link Queryable} instance
-     * @param fieldsExtractor1 extract fields
-     * @param fieldsExtractor2 extract fields
+     * @param fieldsExtractor1 extract fields of one data source
+     * @param fieldsExtractor2 extract fields of the other data source
      * @param <U> the type of element from another {@link Queryable} instance
      * @return the join result
      * @since 4.0.0
diff --git a/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/QueryableCollection.java b/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/QueryableCollection.java
index 0aebe6d..261168b 100644
--- a/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/QueryableCollection.java
+++ b/subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/QueryableCollection.java
@@ -137,7 +137,7 @@ class QueryableCollection<T> implements Queryable<T>, Serializable {
     private static final int HASHTABLE_MAX_SIZE = SystemUtil.getIntegerSafe("groovy.ginq.hashtable.max.size", 128);
     private static final int HASHTABLE_BUCKET_INITIAL_SIZE = SystemUtil.getIntegerSafe("groovy.ginq.hashtable.bucket.initial.size", 16);
     private static Integer hash(Object obj) {
-        return Objects.hash(obj) % HASHTABLE_MAX_SIZE; // mod 100 to limit the size of hash table
+        return Objects.hash(obj) % HASHTABLE_MAX_SIZE; // mod `HASHTABLE_MAX_SIZE` to limit the size of hash table
     }
 
     @Override