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
Copy link to clipboard
Copied
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