Skip to main content
Participant
July 14, 2010
Question

UnusedPrivateMethod - bug when using static private method?

  • July 14, 2010
  • 1 reply
  • 428 views

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

This topic has been closed for replies.

1 reply

Adobe Employee
July 14, 2010

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