Bug 142172 [Wizards] Small overhead in WizardDialog
Here is code of method WizardDialog.updateDescriptionMessage: private void updateDescriptionMessage() { pageDescription = currentPage.getDescription(); setMessage(currentPage.getDescription()); } As you can see, it access currentPage.getDescription() two times, but value of this method is already in field pageDescription.
bundles/org.eclipse.jface/src/org/eclipse/jface/wizard/WizardDialog.java
public void run() {
                    updateForPage(finalPage);
                }
            });
        }
    }
    /**
     * Update the receiver for the new page.
     * @param page
     */
    private void updateForPage(IWizardPage page) {
        
        if (wizard != page.getWizard()) {
			setWizard(page.getWizard());
		}
        
        
        if (page.getControl() == null) {
            page.createControl(pageContainer);
            
            
            Assert.isNotNull(page.getControl());
            
            updateSize(page);
        }
        
        IWizardPage oldPage = currentPage;
        currentPage = page;
        currentPage.setVisible(true);
        if (oldPage != null) {