Repository: incubator-groovy Updated Branches: refs/heads/GROOVY_2_4_X 7c8b83c5a -> 6428812d2
Fixing typos (an List -> a List) (closes #31) Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/6428812d Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/6428812d Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/6428812d Branch: refs/heads/GROOVY_2_4_X Commit: 6428812d257a415d839caaba822cdac81ebb8b55 Parents: 7c8b83c Author: Danny Hyun <hyun.danny+git...@gmail.com> Authored: Wed Jun 3 11:12:03 2015 -0400 Committer: pascalschumacher <pascalschumac...@gmx.net> Committed: Thu Jun 4 22:01:59 2015 +0200 ---------------------------------------------------------------------- .../groovy/runtime/DefaultGroovyMethods.java | 16 ++++++++-------- .../org/codehaus/groovy/runtime/InvokerHelper.java | 4 ++-- .../groovy/jmx/builder/JmxListenerFactory.groovy | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/6428812d/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java ---------------------------------------------------------------------- diff --git a/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java b/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java index 90e36fa..05e243c 100644 --- a/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java +++ b/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java @@ -1676,7 +1676,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport { * assert( list2 == list && list == [a, b, c] ) * </pre> * - * @param self an List + * @param self a List * @param comparator a Comparator used to determine unique (equal) items * If {@code null}, the Comparable natural ordering of the elements will be used. * @return the List of non-duplicate items @@ -1714,7 +1714,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport { * assert letters.toUnique() == expected * </pre> * - * @param self an List + * @param self a List * @return the List of non-duplicate items * @since 2.4.0 */ @@ -1963,11 +1963,11 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport { } /** - * Iterates through an List, + * Iterates through a List, * passing each item and the item's index (a counter starting at * zero) to the given closure. * - * @param self an List + * @param self a List * @param closure a Closure to operate on each item * @return the self List * @since 2.4.0 @@ -2045,7 +2045,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport { } /** - * Iterates through an List, passing each item to the given closure. + * Iterates through a List, passing each item to the given closure. * * @param self the List over which we iterate * @param closure the closure applied on each element found @@ -9036,7 +9036,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport { * assert list == [3, 4, 2] * </pre> * - * @param self an List + * @param self a List * @return a List without its first element * @throws NoSuchElementException if the List is empty and you try to access the tail() * @since 1.5.6 @@ -9161,7 +9161,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport { * assert list == [3, 4, 2] * </pre> * - * @param self an List + * @param self a List * @return a List without its last element * @throws NoSuchElementException if the List is empty and you try to access init() * @since 2.4.0 @@ -11245,7 +11245,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport { * Note: if the Iterable happens to not support duplicates, e.g. a Set, then the * method will effectively return a Collection with a single copy of the Iterable's items. * - * @param self an List + * @param self a List * @param factor the number of times to append * @return the multiplied List * @since 2.4.0 http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/6428812d/src/main/org/codehaus/groovy/runtime/InvokerHelper.java ---------------------------------------------------------------------- diff --git a/src/main/org/codehaus/groovy/runtime/InvokerHelper.java b/src/main/org/codehaus/groovy/runtime/InvokerHelper.java index d550087..303a2c4 100644 --- a/src/main/org/codehaus/groovy/runtime/InvokerHelper.java +++ b/src/main/org/codehaus/groovy/runtime/InvokerHelper.java @@ -274,7 +274,7 @@ public class InvokerHelper { return Byte.valueOf((byte) -number.byteValue()); } if (value instanceof ArrayList) { - // value is an list. + // value is a list. List newlist = new ArrayList(); Iterator it = ((ArrayList) value).iterator(); for (; it.hasNext();) { @@ -849,7 +849,7 @@ public class InvokerHelper { return StringGroovyMethods.bitwiseNegate(value.toString()); } if (value instanceof ArrayList) { - // value is an list. + // value is a list. List newlist = new ArrayList(); Iterator it = ((ArrayList) value).iterator(); for (; it.hasNext();) { http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/6428812d/subprojects/groovy-jmx/src/main/groovy/groovy/jmx/builder/JmxListenerFactory.groovy ---------------------------------------------------------------------- diff --git a/subprojects/groovy-jmx/src/main/groovy/groovy/jmx/builder/JmxListenerFactory.groovy b/subprojects/groovy-jmx/src/main/groovy/groovy/jmx/builder/JmxListenerFactory.groovy index 9e79805..3c767c8 100644 --- a/subprojects/groovy-jmx/src/main/groovy/groovy/jmx/builder/JmxListenerFactory.groovy +++ b/subprojects/groovy-jmx/src/main/groovy/groovy/jmx/builder/JmxListenerFactory.groovy @@ -22,7 +22,7 @@ import javax.management.InstanceNotFoundException import javax.management.NotificationFilterSupport /** - * This factory class is used to create an listener() node for JmxBuilder. Listener nodes are used + * This factory class is used to create a listener() node for JmxBuilder. Listener nodes are used * to create a generic event listener (that is automatically registered with the MBean) that can handle * any event broadcasted on the MBeanServer's event bus. * <p>