Bug 82417 Using uninitialized field instead of parameter in MethodStubsSelectionButtonGroup
The constructor of org.eclipse.jdt.internal.junit.wizards. MethodStubsSelectionButtonGroup contains this line: if (fButtonsStyle == SWT.RADIO) { Since fButtonsStyle is not initialized from the parameter buttonsStyle at that moment, what actually was meant is this: if (buttonsStyle == SWT.RADIO) { BTW: I found this bug using the FindBugs plugin. Seems to be really useful.
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/wizards/MethodStubsSelectionButtonGroup.java
return;
			}
		}
	}	
	
	/**
	 * Returns the selection state of a button contained in the group.
	 * @param index of the button
	 */
	public boolean isSelected(int index) {
		if (index >= 0 && index < fButtonsSelected.length) {
			return fButtonsSelected[index];
		}
		return false;
	}
	
	/**
	 * Sets the selection state of a button contained in the group.
	 */
	public void setSelection(int index, boolean selected) {
		if (index >= 0 && index < fButtonsSelected.length) {
			if (fButtonsSelected[index] != selected) {
				fButtonsSelected[index]= selected;
				if (fButtons != null) {
					Button button= fButtons[index];
					if (isOkToUse(button)) {
						button.setSelection(selected);
					}
				}
			}