Skip to content

Commit

Permalink
[26180] Java 11 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
col-panic committed May 28, 2024
1 parent 488b7e9 commit 0cacfad
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ public void selectionChanged(Object selection) {
txtEmail.setText("");
txtDob.setText("");

if (selection instanceof IContact contact) {
if (selection instanceof IContact) {
IContact contact = (IContact) selection;
txtFamilyName.setText(StringUtils.trimToEmpty(contact.getDescription1()));
txtName.setText(StringUtils.trimToEmpty(contact.getDescription2()));
txtStreet.setText(StringUtils.trimToEmpty(contact.getStreet()));
Expand Down

0 comments on commit 0cacfad

Please sign in to comment.