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
IRunnableWithProgress runnable) throws InvocationTargetException,
            InterruptedException {
        
        
        Object state = null;
        if (activeRunningOperations == 0) {
			state = aboutToStart(fork && cancelable);
		}
        activeRunningOperations++;
        try {
            if (!fork) {
				lockedUI = true;
			}
            ModalContext.run(runnable, fork, getProgressMonitor(), getShell()
                    .getDisplay());
            lockedUI = false;
        } finally {
            activeRunningOperations--;
            
            if (state != null) {
				stopped(state);
			}
        }
    }
    /**
     * Saves the enabled/disabled state of the given control in the
     * given map, which must be modifiable.
     *
     * @param w the control, or <code>null</code> if none
     * @param h the map (key type: <code>String</code>, element type: