You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by pa...@apache.org on 2015/06/04 22:01:23 UTC
incubator-groovy git commit: Fixing typos (an List -> a List) (closes
#31)
Repository: incubator-groovy
Updated Branches:
refs/heads/master daac89dd5 -> 1dd170db1
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/1dd170db
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/1dd170db
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/1dd170db
Branch: refs/heads/master
Commit: 1dd170db1f10eadf5fd41f7f48e6406f829e108b
Parents: daac89d
Author: Danny Hyun <hy...@gmail.com>
Authored: Wed Jun 3 11:12:03 2015 -0400
Committer: pascalschumacher <pa...@gmx.net>
Committed: Thu Jun 4 22:00:05 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/1dd170db/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 c2093f3..d7e799d 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/1dd170db/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 60ec31d..3a720a4 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/1dd170db/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>