Extracting variable whose type is an inner class leaves off the fully qualified class name.

Issue #1178 resolved
Andre Beskrowni created an issue

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)

  1. Log in to comment