Skip to content

Commit 5be5eb8

Browse files
committed
Deprecated Unused Method And Adjusted Formatting
- Marked the `getPrisonerStatusOptions` method as deprecated since it is unused and not required. Scheduled it for removal in version `0.50.05`.
1 parent 899eefe commit 5be5eb8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Diff for: MekHQ/src/mekhq/gui/campaignOptions/contents/PersonnelTab.java

+7-2
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,10 @@ private void initializeGeneralTab() {
407407
* {@code PrisonerStatus.FREE} enumeration.
408408
*
409409
* @return a {@link DefaultComboBoxModel} containing the prisoner status options.
410+
*
411+
* @deprecated unused, no alternative necessary
410412
*/
413+
@Deprecated(since = "0.50.05", forRemoval = true)
411414
private DefaultComboBoxModel<PrisonerStatus> getPrisonerStatusOptions() {
412415
final DefaultComboBoxModel<PrisonerStatus> prisonerStatusModel = new DefaultComboBoxModel<>(PrisonerStatus.values());
413416
// we don't want this as a standard use case for prisoners
@@ -668,7 +671,8 @@ JPanel createAwardsGeneralOptionsPanel() {
668671
lblAwardBonusStyle = new CampaignOptionsLabel("AwardBonusStyle");
669672
comboAwardBonusStyle.setRenderer(new DefaultListCellRenderer() {
670673
@Override
671-
public Component getListCellRendererComponent(final JList<?> list, final Object value, final int index, final boolean isSelected, final boolean cellHasFocus) {
674+
public Component getListCellRendererComponent(final JList<?> list, final Object value, final int index,
675+
final boolean isSelected, final boolean cellHasFocus) {
672676
super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
673677
if (value instanceof AwardBonus) {
674678
list.setToolTipText(((AwardBonus) value).getToolTipText());
@@ -1048,7 +1052,8 @@ private JPanel createPrisonersPanel() {
10481052
lblPrisonerCaptureStyle = new CampaignOptionsLabel("PrisonerCaptureStyle");
10491053
comboPrisonerCaptureStyle.setRenderer(new DefaultListCellRenderer() {
10501054
@Override
1051-
public Component getListCellRendererComponent(final JList<?> list, final Object value, final int index, final boolean isSelected, final boolean cellHasFocus) {
1055+
public Component getListCellRendererComponent(final JList<?> list, final Object value, final int index,
1056+
final boolean isSelected, final boolean cellHasFocus) {
10521057
super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
10531058
if (value instanceof PrisonerCaptureStyle) {
10541059
list.setToolTipText(wordWrap(((PrisonerCaptureStyle) value).getTooltip()));

0 commit comments

Comments
 (0)