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/10/28 13:10:45 UTC
[groovy] branch GROOVY_2_4_X updated: fixed grammar type in code
and Documentation (port to 2_4_X)
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch GROOVY_2_4_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/GROOVY_2_4_X by this push:
new 2ccf059 fixed grammar type in code and Documentation (port to 2_4_X)
2ccf059 is described below
commit 2ccf059d88037b318c176b36c84e852f4235cf5e
Author: Amir Naghibi <am...@visier.com>
AuthorDate: Mon Oct 26 13:47:34 2020 -0700
fixed grammar type in code and Documentation (port to 2_4_X)
---
.../org/codehaus/groovy/runtime/metaclass/MetaClassRegistryImpl.java | 2 +-
src/spec/doc/core-operators.adoc | 2 +-
.../src/main/java/org/codehaus/groovy/runtime/SwingGroovyMethods.java | 2 +-
subprojects/groovy-xml/src/main/java/groovy/xml/DOMBuilder.java | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main/org/codehaus/groovy/runtime/metaclass/MetaClassRegistryImpl.java b/src/main/org/codehaus/groovy/runtime/metaclass/MetaClassRegistryImpl.java
index 4cae01b..742060b 100644
--- a/src/main/org/codehaus/groovy/runtime/metaclass/MetaClassRegistryImpl.java
+++ b/src/main/org/codehaus/groovy/runtime/metaclass/MetaClassRegistryImpl.java
@@ -415,7 +415,7 @@ public class MetaClassRegistryImpl implements MetaClassRegistry{
}
/**
- * Gets an array of of all registered ConstantMetaClassListener instances.
+ * Gets an array of all registered ConstantMetaClassListener instances.
*/
public MetaClassRegistryChangeEventListener[] getMetaClassRegistryChangeEventListeners() {
synchronized (changeListenerList) {
diff --git a/src/spec/doc/core-operators.adoc b/src/spec/doc/core-operators.adoc
index 31f409d..df9b95a 100644
--- a/src/spec/doc/core-operators.adoc
+++ b/src/spec/doc/core-operators.adoc
@@ -439,7 +439,7 @@ The spread operator is null-safe, meaning that if an element of the collection i
----
include::{projectdir}/src/spec/test/OperatorsTest.groovy[tags=spreaddot_nullsafe,indent=0]
----
-<1> build a list for which of of the elements is `null`
+<1> build a list for which one of the elements is `null`
<2> using the spread operator will *not* throw a `NullPointerException`
<3> the receiver might also be null, in which case the return value is `null`
diff --git a/subprojects/groovy-swing/src/main/java/org/codehaus/groovy/runtime/SwingGroovyMethods.java b/subprojects/groovy-swing/src/main/java/org/codehaus/groovy/runtime/SwingGroovyMethods.java
index 353faa8..a9c8561 100644
--- a/subprojects/groovy-swing/src/main/java/org/codehaus/groovy/runtime/SwingGroovyMethods.java
+++ b/subprojects/groovy-swing/src/main/java/org/codehaus/groovy/runtime/SwingGroovyMethods.java
@@ -222,7 +222,7 @@ public class SwingGroovyMethods {
* Allow DefaultListModel to work with subscript operators.<p>
* <b>WARNING:</b> this operation does not replace the element at the
* specified index, rather it inserts the element at that index, thus
- * increasing the size of of the model by 1.
+ * increasing the size of the model by 1.
*
* @param self a DefaultListModel
* @param index an index
diff --git a/subprojects/groovy-xml/src/main/java/groovy/xml/DOMBuilder.java b/subprojects/groovy-xml/src/main/java/groovy/xml/DOMBuilder.java
index 9c910cf..febe7e4 100644
--- a/subprojects/groovy-xml/src/main/java/groovy/xml/DOMBuilder.java
+++ b/subprojects/groovy-xml/src/main/java/groovy/xml/DOMBuilder.java
@@ -226,7 +226,7 @@ public class DOMBuilder extends BuilderSupport {
QName qname = (QName) key;
element.setAttributeNS(qname.getNamespaceURI(), qname.getQualifiedName(), value.toString());
} else {
- throw new IllegalArgumentException("The key: " + key + " should be an instanceof of " + QName.class);
+ throw new IllegalArgumentException("The key: " + key + " should be an instance of " + QName.class);
}
}
}