Jim,

http://livedocs.adobe.com/flex/3/html/help.html?content=metadata_3.html check
the documentation. I believe you are suppose to use it on setter only.

Regards
Srinivas

On Wed, Apr 7, 2010 at 1:24 PM, jimmartin10 <[email protected]> wrote:

>
>
> If I use the [Deprecated] tag on a getter only, e.g.
>
> [Deprecated]
> public function get myOldProperty():int
> {
> return 0;
> }
>
> public function set myOldProperty(value:int):void
> {
> }
>
> Then I get a warning at the line of the setter. "myOldProperty has been
> deprecated"
>
> If I use the [Deprecated] tag on both getter and setter, e.g.
>
> [Deprecated]
> public function get myOldProperty():int
> {
> return 0;
> }
>
> [Deprecated]
> public function set myOldProperty(value:int):void
> {
> }
>
> Then I get a duplicate deprecated tag warning.
>
> These warnings then clog up the warnings panel, and make the use of the
> Deprecated tag pointless, as I will be unable to see any genuine warnings
> about actual use of the deprecated property.
>
> Is it possible to Deprecate a property which has mutators and only see
> warnings for line where the property is referenced?
>
> Environment:
> XP
> SDK 3.2
> Eclipse Plugin
>
>  
>

Reply via email to