flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Ent <p...@adobe.com>
Subject Re: [FlexJS] some warnings while trying to use basic alert
Date Thu, 05 Dec 2013 14:03:57 GMT
Hi,

I submitted changes the other day which should have cleared a lot of these
up, especially ones in ValuesManager. I'll look into the other ones, too.

Peter Ent
Adobe Systems

On 12/4/13 10:05 PM, "Igor Costa" <igorcosta@gmail.com> wrote:

>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\core\ValuesManager.js:
>40:
>WARNING - assignment to property valuesImpl of
>org.apache.flex.core.ValuesManager.prototype
>found   : null
>required: function (this:org.apache.flex.core.ValuesManager):
>(null|org.apache.flex.core.ValuesManager)
>org.apache.flex.core.ValuesManager.prototype.valuesImpl = null;
>^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\core\ValuesManager.js:
>46:
>WARNING - Bad type annotation. Unknown type object
> * @return {object} The value.
>            ^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\core\ValuesManager.js:
>56:
>WARNING - Bad type annotation. Unknown type object
> * @param {object} value being set.
>           ^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\core\ValuesManager.js:
>59:
>WARNING - assignment to property valuesImpl of
>org.apache.flex.core.ValuesManager
>found   : (null|object)
>required: function (this:org.apache.flex.core.ValuesManager):
>(null|org.apache.flex.core.ValuesManager)
>  this.valuesImpl = value;
>  ^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\Al
>ert.js:71:
>WARNING - Missing return statement. Function expected to return
>(Object|null).
>    function() {
>    ^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\Al
>ert.js:174:
>WARNING - actual parameter 1 of goog.events.listen does not match formal
>parameter
>found   : (Object|null)
>required: (EventTarget|goog.events.Listenable|null)
>    goog.events.listen(ok.element, 'click',
>                       ^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\Al
>ert.js:181:
>WARNING - actual parameter 1 of goog.events.listen does not match formal
>parameter
>found   : (Object|null)
>required: (EventTarget|goog.events.Listenable|null)
>    goog.events.listen(cancel.element, 'click',
>                       ^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\Al
>ert.js:188:
>WARNING - actual parameter 1 of goog.events.listen does not match formal
>parameter
>found   : (Object|null)
>required: (EventTarget|goog.events.Listenable|null)
>    goog.events.listen(yes.element, 'click',
>                       ^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\Al
>ert.js:195:
>WARNING - actual parameter 1 of goog.events.listen does not match formal
>parameter
>found   : (Object|null)
>required: (EventTarget|goog.events.Listenable|null)
>    goog.events.listen(nob.element, 'click',
>                       ^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\Ti
>tleBar.js:51:
>WARNING - Missing return statement. Function expected to return
>(Object|null).
>    function() {
>    ^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\be
>ads\models\TitleBarModel.js:62:
>WARNING - inconsistent return type
>found   : string
>required: (String|null)
>  return this.title_;
>         ^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\be
>ads\models\TitleBarModel.js:109:
>WARNING - inconsistent return type
>found   : boolean
>required: (Boolean|null)
>  return this.showCloseButton_;
>         ^
>
>0 error(s), 12 warning(s), 93,0% typed
>
>
>
>
>----------------------------
>Igor Costa
>www.igorcosta.com
>www.igorcosta.org


Mime
View raw message