Skip to content

Commit

Permalink
Code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender committed Dec 1, 2023
1 parent adab8d2 commit 1727fcc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ public void widgetDisposed(DisposeEvent e) {
@Override
public String getText(Object element) {

if(element instanceof File) {
return getName((File)element);
if(element instanceof File file) {
return getName(file);
}
return "-";
}
Expand All @@ -314,8 +314,8 @@ public Image getImage(Object element) {
@Override
public String getText(Object element) {

if(element instanceof File) {
return getPath((File)element);
if(element instanceof File file) {
return getPath(file);
}
return "-";
}
Expand Down

0 comments on commit 1727fcc

Please sign in to comment.