diff --git a/src/ol/collection.js b/src/ol/collection.js index 81ead47d4f..a679dca011 100644 --- a/src/ol/collection.js +++ b/src/ol/collection.js @@ -79,7 +79,7 @@ ol.CollectionProperty = { * @constructor * @extends {ol.Object} * @fires ol.CollectionEvent - * @param {Array.=} opt_array Array. + * @param {!Array.=} opt_array Array. * @template T * @api stable */ @@ -89,7 +89,7 @@ ol.Collection = function(opt_array) { /** * @private - * @type {Array.} + * @type {!Array.} */ this.array_ = goog.isDef(opt_array) ? opt_array : []; @@ -113,7 +113,7 @@ ol.Collection.prototype.clear = function() { /** * Add elements to the collection. This pushes each item in the provided array * to the end of the collection. - * @param {Array.} arr Array. + * @param {!Array.} arr Array. * @return {ol.Collection.} This collection. * @api stable */ @@ -145,7 +145,7 @@ ol.Collection.prototype.forEach = function(f, opt_this) { * is mutated, no events will be dispatched by the collection, and the * collection's "length" property won't be in sync with the actual length * of the array. - * @return {Array.} Array. + * @return {!Array.} Array. * @api stable */ ol.Collection.prototype.getArray = function() {