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/27 23:15:49 UTC
[groovy] branch master updated: fixed grammar type in code and
Documentation (closes #1412)
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 064ed93 fixed grammar type in code and Documentation (closes #1412)
064ed93 is described below
commit 064ed93928c6a9899956423900fbb148c5027d70
Author: Amir Naghibi <am...@visier.com>
AuthorDate: Mon Oct 26 13:47:34 2020 -0700
fixed grammar type in code and Documentation (closes #1412)
---
.../org/codehaus/groovy/runtime/metaclass/MetaClassRegistryImpl.java | 2 +-
src/spec/doc/core-operators.adoc | 2 +-
.../main/java/org/apache/groovy/swing/extensions/SwingExtensions.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/java/org/codehaus/groovy/runtime/metaclass/MetaClassRegistryImpl.java b/src/main/java/org/codehaus/groovy/runtime/metaclass/MetaClassRegistryImpl.java
index 5a50bad..ef9e7ad 100644
--- a/src/main/java/org/codehaus/groovy/runtime/metaclass/MetaClassRegistryImpl.java
+++ b/src/main/java/org/codehaus/groovy/runtime/metaclass/MetaClassRegistryImpl.java
@@ -413,7 +413,7 @@ public class MetaClassRegistryImpl implements MetaClassRegistry{
}
/**
- * Gets an array of of all registered ConstantMetaClassListener instances.
+ * Gets an array of all registered ConstantMetaClassListener instances.
*/
@Override
public MetaClassRegistryChangeEventListener[] getMetaClassRegistryChangeEventListeners() {
diff --git a/src/spec/doc/core-operators.adoc b/src/spec/doc/core-operators.adoc
index bf3fbba..9dace42 100644
--- a/src/spec/doc/core-operators.adoc
+++ b/src/spec/doc/core-operators.adoc
@@ -579,7 +579,7 @@ it will return null instead of throwing a `NullPointerException`:
----
include::../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/apache/groovy/swing/extensions/SwingExtensions.java b/subprojects/groovy-swing/src/main/java/org/apache/groovy/swing/extensions/SwingExtensions.java
index 66a7cea..756f0b6 100644
--- a/subprojects/groovy-swing/src/main/java/org/apache/groovy/swing/extensions/SwingExtensions.java
+++ b/subprojects/groovy-swing/src/main/java/org/apache/groovy/swing/extensions/SwingExtensions.java
@@ -224,7 +224,7 @@ public class SwingExtensions {
* 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 dbbcc5b..f097de3 100644
--- a/subprojects/groovy-xml/src/main/java/groovy/xml/DOMBuilder.java
+++ b/subprojects/groovy-xml/src/main/java/groovy/xml/DOMBuilder.java
@@ -229,7 +229,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);
}
}
}