• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

UnusedPrivateMethod - bug when using static private method?

New Here ,
Jul 14, 2010 Jul 14, 2010

Copy link to clipboard

Copied

Hi,

I get the following violation:

UnusedPrivateMethod. This private method (createDefaultSolidColors) does not seem to be used.

For the foloowing code snippet:

private

static const defaultSolidColors:Array = createDefaultSolidColors();

private static function createDefaultSolidColors():Array {

     var _a:Array = new Array();

     for each (var color:uint in defaultColors) {

          _a.push(

new SolidColor(color, 0.8));

     }

     return _a;

}

Why is it a violation? the function is used by the defaultSolidColors property.

Is it a bug or am I missing something?

Thanks,

-ilan

TOPICS
FlexPMD

Views

396

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jul 14, 2010 Jul 14, 2010

Copy link to clipboard

Copied

LATEST

This is a known issue, which has been fixed on trunk.

The fix will be in the next release:

https://bugs.adobe.com/jira/browse/FLEXPMD-173

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines