GROOVY-8548: DGM#intersect should provide a variant with a comparator (minor 
refactor for jdk7 compat)


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/a7e5722b
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/a7e5722b
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/a7e5722b

Branch: refs/heads/GROOVY_2_6_X
Commit: a7e5722bed4ce8770c4fd504c42081b08e5ef9b7
Parents: 835c09d
Author: Paul King <pa...@asert.com.au>
Authored: Mon Apr 16 15:37:19 2018 +1000
Committer: Paul King <pa...@asert.com.au>
Committed: Mon Apr 16 15:37:19 2018 +1000

----------------------------------------------------------------------
 .../java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java  | 5 -----
 1 file changed, 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/a7e5722b/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
----------------------------------------------------------------------
diff --git 
a/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java 
b/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
index 4d4e3f6..0902b1e 100644
--- a/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
+++ b/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
@@ -12232,9 +12232,6 @@ public class DefaultGroovyMethods extends 
DefaultGroovyMethodsSupport {
      * elements that exist in both collections are added to the resultant 
collection.
      * For collections of custom objects; the objects should implement 
java.lang.Comparable
      * <pre class="groovyTestCase">
-     * assert [3,4] == [1,2,3,4].intersect([3,4,5,6], 
Comparator.naturalOrder())
-     * </pre>
-     * <pre class="groovyTestCase">
      * def one = ['a', 'B', 'c', 'd']
      * def two = ['b', 'C', 'd', 'e']
      * def compareIgnoreCase = { a, b -> a.toLowerCase() <=> b.toLowerCase() }
@@ -12288,7 +12285,6 @@ public class DefaultGroovyMethods extends 
DefaultGroovyMethodsSupport {
      * Create a Collection composed of the intersection of both iterables.  Any
      * elements that exist in both iterables are added to the resultant 
collection.
      * For iterables of custom objects; the objects should implement 
java.lang.Comparable
-     * <pre class="groovyTestCase">assert [3,4] == 
[1,2,3,4].intersect([3,4,5,6], Comparator.naturalOrder())</pre>
      *
      * @param left  an Iterable
      * @param right an Iterable
@@ -12352,7 +12348,6 @@ public class DefaultGroovyMethods extends 
DefaultGroovyMethodsSupport {
     /**
      * Create a Set composed of the intersection of a Set and an Iterable.  Any
      * elements that exist in both iterables are added to the resultant 
collection.
-     * <pre class="groovyTestCase">assert [3,4] as Set == ([1,2,3,4] as 
Set).intersect([3,4,5,6], Comparator.naturalOrder())</pre>
      *
      * @param left  a Set
      * @param right an Iterable

Reply via email to