Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Commit

Permalink
fix type warnings
Browse files Browse the repository at this point in the history
R=chrishenry
DELTA=6  (0 added, 0 deleted, 6 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4517


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1733 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
  • Loading branch information
nicksantos@google.com committed Apr 11, 2012
1 parent 8a88cc4 commit 18f77f6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion closure/goog/array/array.js
Expand Up @@ -1229,7 +1229,7 @@ goog.array.bucket = function(array, sorter) {
* *
* @param {*} value The value to repeat. * @param {*} value The value to repeat.
* @param {number} n The repeat count. * @param {number} n The repeat count.
* @return {!Array.<*>} An array with the repeated value. * @return {!Array} An array with the repeated value.
*/ */
goog.array.repeat = function(value, n) { goog.array.repeat = function(value, n) {
var array = []; var array = [];
Expand Down
2 changes: 1 addition & 1 deletion closure/goog/labs/async/combine.js
Expand Up @@ -79,7 +79,7 @@ goog.labs.async.combine.onSuccess = function(var_args) {
goog.labs.async.combine.apply(goog.labs.async.combine, arguments), goog.labs.async.combine.apply(goog.labs.async.combine, arguments),
// The combined result never ERRORs // The combined result never ERRORs
function(res) { function(res) {
var results = res.getValue(); var results = /** @type {Array} */ (res.getValue());
if (goog.array.every(results, resolvedSuccessfully)) { if (goog.array.every(results, resolvedSuccessfully)) {
combinedResult.setValue(results); combinedResult.setValue(results);
} else { } else {
Expand Down
2 changes: 1 addition & 1 deletion closure/goog/proto2/textformatserializer.js
Expand Up @@ -115,7 +115,7 @@ goog.proto2.TextFormatSerializer.prototype.serializeMessage_ =


switch (goog.typeOf(value)) { switch (goog.typeOf(value)) {
case 'string': case 'string':
value = goog.string.quote(value); value = goog.string.quote(/** @type {string} */ (value));
printer.append(value); printer.append(value);
break; break;


Expand Down
2 changes: 1 addition & 1 deletion closure/goog/structs/quadtree.js
Expand Up @@ -211,7 +211,7 @@ goog.structs.QuadTree.prototype.clone = function() {


/** /**
* Traverses the tree and calls a function on each node. * Traverses the tree and calls a function on each node.
* @param {function(Object, goog.math.Coordinate, goog.structs.QuadTree)} fn * @param {function(?, goog.math.Coordinate, goog.structs.QuadTree)} fn
* The function to call for every value. This function takes 3 arguments * The function to call for every value. This function takes 3 arguments
* (the value, the coordinate, and the tree itself) and the return value is * (the value, the coordinate, and the tree itself) and the return value is
* irrelevant. * irrelevant.
Expand Down
4 changes: 2 additions & 2 deletions closure/goog/testing/multitestrunner.js
Expand Up @@ -845,8 +845,8 @@ goog.testing.MultiTestRunner.prototype.drawTimeHistogram_ = function() {
* Draws a stats histogram. * Draws a stats histogram.
* @param {string} statsField Field of the stats object to graph. * @param {string} statsField Field of the stats object to graph.
* @param {number} bucketSize The size for the histogram's buckets. * @param {number} bucketSize The size for the histogram's buckets.
* @param {function(*, ...[*]): *} valueTransformFn Function for transforming * @param {function(number, ...[*]): *} valueTransformFn Function for
* the x-labels value for display. * transforming the x-labels value for display.
* @param {number} width The width in pixels of the graph. * @param {number} width The width in pixels of the graph.
* @param {string} title The graph's title. * @param {string} title The graph's title.
* @private * @private
Expand Down

0 comments on commit 18f77f6

Please sign in to comment.