From 4ddc4e2f8a164fe2fffbce5e382a7df2a523accd Mon Sep 17 00:00:00 2001 From: "Ray J. Greenwell" Date: Sat, 21 Mar 2026 15:48:40 -0700 Subject: [PATCH] Why does the compiler care about this one JComboBox and not others? --- .../com/threerings/admin/client/PulldownFieldEditor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/threerings/admin/client/PulldownFieldEditor.java b/core/src/main/java/com/threerings/admin/client/PulldownFieldEditor.java index 72ffd7e87..2e0cacddb 100644 --- a/core/src/main/java/com/threerings/admin/client/PulldownFieldEditor.java +++ b/core/src/main/java/com/threerings/admin/client/PulldownFieldEditor.java @@ -58,7 +58,7 @@ public class PulldownFieldEditor extends FieldEditor { super(ctx, field, obj); - add(_value = new JComboBox()); + add(_value = new JComboBox()); } /** @@ -108,7 +108,7 @@ public class PulldownFieldEditor extends FieldEditor protected void displayValue (Object value) { for (int ii = _value.getItemCount() - 1; ii >= 0; ii--) { - Choice choice = (Choice)_value.getItemAt(ii); + Choice choice = _value.getItemAt(ii); if (Objects.equal(value, choice.value)) { _value.setSelectedIndex(ii); return; @@ -121,5 +121,5 @@ public class PulldownFieldEditor extends FieldEditor } /** Holds the value we're editing. */ - protected JComboBox _value; + protected JComboBox _value; }