Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-ant-dev] Temp vars in PlantyCompletionProcessor

The PlantyCompletionProcessor has got some code that I don't understand.

The code basically looks like this:
public class PlantyCompletionProcessor {
  protected static DTD dtd;
  
  protected ICompletionProposal[] getAttributeProposals(String aTaskName,
           String aPrefix) {
    DTD tempDtd = dtd;
    DTDElement tempElement = (DTDElement)tempDtd.elements.get(aTaskName);
    <more code that does not reference tempDtd>
  }
}

Code like this exists in a few places in this class. Is it just a remnant from 
a refactoring that was never cleaned up?

Thanks,
- Jared


Back to the top