File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/mediathek/tool/swing Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -145,12 +145,12 @@ public void propertyChange(PropertyChangeEvent evt) {
145
145
if ("model" .equals (evt .getPropertyName ())) {
146
146
hidePopup ();
147
147
148
- if (evt .getOldValue () instanceof ComboBoxModel ) {
149
- (( ComboBoxModel <?>) evt . getOldValue ()) .removeListDataListener (this );
148
+ if (evt .getOldValue () instanceof ComboBoxModel <?> model ) {
149
+ model .removeListDataListener (this );
150
150
}
151
151
152
- if (evt .getNewValue () instanceof ComboBoxModel ) {
153
- (( ComboBoxModel <?>) evt . getNewValue ()) .addListDataListener (this );
152
+ if (evt .getNewValue () instanceof ComboBoxModel <?> model ) {
153
+ model .addListDataListener (this );
154
154
}
155
155
fireSearchableEvent (new SearchableEvent (this , SearchableEvent .SEARCHABLE_MODEL_CHANGE ));
156
156
}
You can’t perform that action at this time.
0 commit comments