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
} else {
			Composite buttonsgroup= getSelectionButtonsGroup(parent);
			GridData gd= new GridData();
			gd.horizontalSpan= nColumns;
			buttonsgroup.setLayoutData(gd);
			return new Control[] { buttonsgroup };
		}
	}	
	/*
	 * @see DialogField#doFillIntoGrid
	 */	
	public int getNumberOfControls() {
		return (fGroupBorderStyle == SWT.NONE) ? 2 : 1;
	}
	
	private Button createSelectionButton(int index, Composite group, SelectionListener listener) {
		Button button= new Button(group, fButtonsStyle | SWT.LEFT);
		button.setFont(group.getFont());			
		button.setText(fButtonNames[index]);
		button.setEnabled(isEnabled() && fButtonsEnabled[index]);
		button.setSelection(fButtonsSelected[index]);
		button.addSelectionListener(listener);
		button.setLayoutData(new GridData());
		return button;
	}
	
	private Button createMainCombo(int index, Composite group, SelectionListener listener) {
		Composite buttonComboGroup= new Composite(group, 0);
		GridLayout layout= new GridLayout();
		layout.marginHeight= 0;