You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2020/03/23 02:15:28 UTC
[groovy] branch master updated: whitespace
This is an automated email from the ASF dual-hosted git repository.
paulk 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 94ebb18 whitespace
94ebb18 is described below
commit 94ebb18a435a8ca2ede2a8816b917c541b0aed8e
Author: Paul King <pa...@asert.com.au>
AuthorDate: Mon Mar 23 12:15:20 2020 +1000
whitespace
---
.../groovy/runtime/DefaultGroovyMethods.java | 60 +++++++++++-----------
1 file changed, 30 insertions(+), 30 deletions(-)
diff --git a/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java b/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
index 660bcf7..50f926f 100644
--- a/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
+++ b/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
@@ -2714,7 +2714,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
/**
* Iterates over the collection of items which this Object represents and returns each item that matches
* the given filter - calling the <code>{@link #isCase(java.lang.Object, java.lang.Object)}</code>
- * method used by switch statements. This method can be used with different
+ * method used by switch statements. This method can be used with different
* kinds of filters like regular expressions, classes, ranges etc.
* Example:
* <pre class="groovyTestCase">
@@ -2745,7 +2745,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
/**
* Iterates over the collection of items and returns each item that matches
* the given filter - calling the <code>{@link #isCase(java.lang.Object, java.lang.Object)}</code>
- * method used by switch statements. This method can be used with different
+ * method used by switch statements. method can be used with different
* kinds of filters like regular expressions, classes, ranges etc.
* Example:
* <pre class="groovyTestCase">
@@ -2775,7 +2775,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
/**
* Iterates over the collection of items and returns each item that matches
* the given filter - calling the <code>{@link #isCase(java.lang.Object, java.lang.Object)}</code>
- * method used by switch statements. This method can be used with different
+ * method used by switch statements. This method can be used with different
* kinds of filters like regular expressions, classes, ranges etc.
* Example:
* <pre class="groovyTestCase">
@@ -2798,7 +2798,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
/**
* Iterates over the collection of items and returns each item that matches
* the given filter - calling the <code>{@link #isCase(java.lang.Object, java.lang.Object)}</code>
- * method used by switch statements. This method can be used with different
+ * method used by switch statements. This method can be used with different
* kinds of filters like regular expressions, classes, ranges etc.
* Example:
* <pre class="groovyTestCase">
@@ -5862,7 +5862,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Sums the items in an Iterable. This is equivalent to invoking the
+ * Sums the items in an Iterable. This is equivalent to invoking the
* "plus" method on all items in the Iterable.
* <pre class="groovyTestCase">assert 1+2+3+4 == [1,2,3,4].sum()</pre>
*
@@ -5875,7 +5875,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Sums the items in an array. This is equivalent to invoking the
+ * Sums the items in an array. This is equivalent to invoking the
* "plus" method on all items in the array.
*
* @param self The array of values to add together
@@ -5888,7 +5888,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Sums the items from an Iterator. This is equivalent to invoking the
+ * Sums the items from an Iterator. This is equivalent to invoking the
* "plus" method on all items from the Iterator. The iterator will become
* exhausted of elements after determining the sum value.
*
@@ -6012,7 +6012,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Sums the items from an Iterator, adding the result to some initial value. This is
+ * Sums the items from an Iterator, adding the result to some initial value. This is
* equivalent to invoking the "plus" method on all items from the Iterator. The iterator
* will become exhausted of elements after determining the sum value.
*
@@ -6276,7 +6276,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Averages the items in an Iterable. This is equivalent to invoking the
+ * Averages the items in an Iterable. This is equivalent to invoking the
* "plus" method on all items in the Iterable and then dividing by the
* total count using the "div" method for the resulting sum.
* <pre class="groovyTestCase">assert 3 == [1, 2, 6].average()</pre>
@@ -6305,7 +6305,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Averages the items in an array. This is equivalent to invoking the
+ * Averages the items in an array. This is equivalent to invoking the
* "plus" method on all items in the array and then dividing by the
* total count using the "div" method for the resulting sum.
* <pre class="groovyTestCase">assert 3 == ([1, 2, 6] as Integer[]).average()</pre>
@@ -6323,7 +6323,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Averages the items from an Iterator. This is equivalent to invoking the
+ * Averages the items from an Iterator. This is equivalent to invoking the
* "plus" method on all items in the array and then dividing by the
* total count using the "div" method for the resulting sum.
* The iterator will become exhausted of elements after determining the average value.
@@ -12639,7 +12639,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
/**
* Determines if the contents of this array are equal to the
- * contents of the given list, in the same order. This returns
+ * contents of the given list, in the same order. This returns
* <code>false</code> if either collection is <code>null</code>.
*
* @param left an array
@@ -12653,7 +12653,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
/**
* Determines if the contents of this list are equal to the
- * contents of the given array in the same order. This returns
+ * contents of the given array in the same order. This returns
* <code>false</code> if either collection is <code>null</code>.
* <pre class="groovyTestCase">assert [1, "a"].equals( [ 1, "a" ] as Object[] )</pre>
*
@@ -13150,7 +13150,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Flatten a Collection. This Collection and any nested arrays or
+ * Flatten a Collection. This Collection and any nested arrays or
* collections have their contents (recursively) added to the new collection.
* <pre class="groovyTestCase">assert [1,2,3,4,5] == [1,[2,3],[[4]],[],5].flatten()</pre>
*
@@ -13163,7 +13163,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Flatten an Iterable. This Iterable and any nested arrays or
+ * Flatten an Iterable. This Iterable and any nested arrays or
* collections have their contents (recursively) added to the new collection.
* <pre class="groovyTestCase">assert [1,2,3,4,5] == [1,[2,3],[[4]],[],5].flatten()</pre>
*
@@ -13176,7 +13176,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Flatten a List. This List and any nested arrays or
+ * Flatten a List. This List and any nested arrays or
* collections have their contents (recursively) added to the new List.
* <pre class="groovyTestCase">assert [1,2,3,4,5] == [1,[2,3],[[4]],[],5].flatten()</pre>
*
@@ -13189,7 +13189,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Flatten a Set. This Set and any nested arrays or
+ * Flatten a Set. This Set and any nested arrays or
* collections have their contents (recursively) added to the new Set.
* <pre class="groovyTestCase">assert [1,2,3,4,5] as Set == ([1,[2,3],[[4]],[],5] as Set).flatten()</pre>
*
@@ -13202,7 +13202,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Flatten a SortedSet. This SortedSet and any nested arrays or
+ * Flatten a SortedSet. This SortedSet and any nested arrays or
* collections have their contents (recursively) added to the new SortedSet.
* <pre class="groovyTestCase">
* Set nested = [[0,1],[2],3,[4],5]
@@ -13220,7 +13220,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Flatten an array. This array and any nested arrays or
+ * Flatten an array. This array and any nested arrays or
* collections have their contents (recursively) added to the new collection.
*
* @param self an Array to flatten
@@ -13232,7 +13232,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Flatten an array. This array and any nested arrays or
+ * Flatten an array. This array and any nested arrays or
* collections have their contents (recursively) added to the new collection.
*
* @param self a boolean Array to flatten
@@ -13244,7 +13244,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Flatten an array. This array and any nested arrays or
+ * Flatten an array. This array and any nested arrays or
* collections have their contents (recursively) added to the new collection.
*
* @param self a byte Array to flatten
@@ -13256,7 +13256,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Flatten an array. This array and any nested arrays or
+ * Flatten an array. This array and any nested arrays or
* collections have their contents (recursively) added to the new collection.
*
* @param self a char Array to flatten
@@ -13268,7 +13268,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Flatten an array. This array and any nested arrays or
+ * Flatten an array. This array and any nested arrays or
* collections have their contents (recursively) added to the new collection.
*
* @param self a short Array to flatten
@@ -13280,7 +13280,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Flatten an array. This array and any nested arrays or
+ * Flatten an array. This array and any nested arrays or
* collections have their contents (recursively) added to the new collection.
*
* @param self an int Array to flatten
@@ -13292,7 +13292,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Flatten an array. This array and any nested arrays or
+ * Flatten an array. This array and any nested arrays or
* collections have their contents (recursively) added to the new collection.
*
* @param self a long Array to flatten
@@ -13304,7 +13304,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Flatten an array. This array and any nested arrays or
+ * Flatten an array. This array and any nested arrays or
* collections have their contents (recursively) added to the new collection.
*
* @param self a float Array to flatten
@@ -13316,7 +13316,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Flatten an array. This array and any nested arrays or
+ * Flatten an array. This array and any nested arrays or
* collections have their contents (recursively) added to the new collection.
*
* @param self a double Array to flatten
@@ -13342,7 +13342,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
/**
- * Flatten an Iterable. This Iterable and any nested arrays or
+ * Flatten an Iterable. This Iterable and any nested arrays or
* collections have their contents (recursively) added to the new collection.
* For any non-Array, non-Collection object which represents some sort
* of collective type, the supplied closure should yield the contained items;
@@ -16043,7 +16043,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
* @return the absolute value of that Number
* @since 1.0
*/
- //Note: This method is NOT called if number is a BigInteger or BigDecimal because
+ //Note: This method is NOT called if number is a BigInteger or BigDecimal because
//those classes implement a method with a better exact match.
public static int abs(Number number) {
return Math.abs(number.intValue());
@@ -16546,7 +16546,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
// }
/**
- * Allows a simple syntax for using timers. This timer will execute the
+ * Allows a simple syntax for using timers. This timer will execute the
* given closure after the given delay.
*
* @param timer a timer object