Skip to content

Commit

Permalink
Use non-deprecated style for marking nullable primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
realityforge committed Apr 16, 2019
1 parent f06e475 commit 79f441b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion externs/browser/flash.js
Expand Up @@ -39,7 +39,7 @@ HTMLObjectElement.prototype.CallFunction = function(xmlString) {};
* Returns the value of the Flash variable specified by varName or null if the
* variable does not exist.
* @param {string} varName The variable name.
* @return {string?} The variable value.
* @return {?string} The variable value.
*/
HTMLObjectElement.prototype.GetVariable = function(varName) {};

Expand Down
2 changes: 1 addition & 1 deletion externs/browser/gecko_dom.js
Expand Up @@ -340,7 +340,7 @@ Document.prototype.anchors;
*/
Document.prototype.applets;
/** @type {boolean} */ Document.prototype.async;
/** @type {string?} */ Document.prototype.baseURI;
/** @type {?string} */ Document.prototype.baseURI;

/**
* @see https://developer.mozilla.org/en/DOM/document.bgColor
Expand Down
2 changes: 1 addition & 1 deletion externs/browser/w3c_dom1.js
Expand Up @@ -618,7 +618,7 @@ Element.prototype.className;

/**
* @param {string} name
* @param {number?=} opt_flags
* @param {?number=} opt_flags
* @return {string}
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-getAttribute
* @see http://msdn.microsoft.com/en-us/library/ms536429(VS.85).aspx
Expand Down
8 changes: 4 additions & 4 deletions externs/browser/window.js
Expand Up @@ -134,20 +134,20 @@ function alert(message) {}
function clearImmediate(immediateID) {}

/**
* @param {number|undefined?} intervalID
* @param {number=} opt_intervalID
* @see https://developer.mozilla.org/en/DOM/window.clearInterval
* @suppress {duplicate}
* @return {undefined}
*/
function clearInterval(intervalID) {}
function clearInterval(opt_intervalID) {}

/**
* @param {number|undefined?} timeoutID
* @param {number=} opt_timeoutID
* @see https://developer.mozilla.org/en/DOM/window.clearTimeout
* @suppress {duplicate}
* @return {undefined}
*/
function clearTimeout(timeoutID) {}
function clearTimeout(opt_timeoutID) {}

/**
* @param {*} message
Expand Down

0 comments on commit 79f441b

Please sign in to comment.