Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ protected void fireConstantMetaClassUpdate(Object obj, Class c, final MetaClass
}

/**
* Gets an array of of all registered ConstantMetaClassListener instances.
* Gets an array of all registered ConstantMetaClassListener instances.
*/
@Override
public MetaClassRegistryChangeEventListener[] getMetaClassRegistryChangeEventListeners() {
Expand Down
2 changes: 1 addition & 1 deletion src/spec/doc/core-operators.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is in the official documentation for groovy under 8.1. Spread operator section.

http://groovy-lang.org/operators.html

<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`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public static DefaultListModel<?> leftShift(DefaultListModel<Object> self, Objec
* 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ protected void appendNamespaceAttributes(Element element, Map<Object, Object> at
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);
}
}
}
Expand Down