Ignore:
Timestamp:
2021-09-12T02:10:25+02:00 (3 years ago)
Author:
Don-vip
Message:

global use of !Utils.isEmpty/isBlank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/widgets/UrlLabel.java

    r17605 r18211  
    9292
    9393    protected final void refresh() {
    94         if (url != null && !url.isEmpty()) {
     94        if (!Utils.isEmpty(url)) {
    9595            refresh("<html><a color=\"" + JosmEditorPane.getLinkColor() + "\" href=\"" + url + "\">" + description + "</a></html>",
    9696                    Cursor.getPredefinedCursor(Cursor.HAND_CURSOR),
     
    147147    @Override
    148148    public void mouseClicked(MouseEvent e) {
    149         if (url != null && !url.isEmpty()) {
     149        if (!Utils.isEmpty(url)) {
    150150            if (SwingUtilities.isLeftMouseButton(e)) {
    151151                OpenBrowser.displayUrl(url);
Note: See TracChangeset for help on using the changeset viewer.