Community
Participate
Working Groups
As you will most of the time have no full decorator definitions we should do the following: 1) If there are no full decorators skip the conversion to the array 2) enabledFullDefinitions should have the same short circuit 3) writeDecoratorsPreference should also short circuit
getDecoratorsFor is also creating garbage ArrayList decorators = new ArrayList(); for (int i = 0; i < enabledDefinitions.length; i++) { if (enabledDefinitions[i].getEnablement().isEnabledFor(element)) decorators.add(enabledDefinitions[i]); } return decorators;
Fixed in HEAD. This removes one ArrayList on every decoration request in the general case where there are no full decorations.
Verified in 20050510