- changed status to resolved
Extracting variable whose type is an inner class leaves off the fully qualified class name.
Issue #1178
resolved
For example, start with following line of code:
CollectionUtil.sort(new SObject[0], Comparators.sobjectFieldValueComparator(SObject.Id));
If you try to extract Comparators.sobjectFieldValueComparator(SObject.Id))
into its own variable, you end up with.
ConfigurableComparator configurableComparator = Comparators.sobjectFieldValueComparator(SObject.Id);
CollectionUtil.sort(new SObject[0], configurableComparator);
The above code doesn't compile. The reference for configurableComparator
should be of type Comparators.ConfigurableComparator
.
Comments (1)
-
repo owner - Log in to comment
I actually fixed this a few builds back.