Ignore:
Timestamp:
2017-08-22T22:26:32+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate all Main logging methods and introduce suitable replacements in Logging for most of them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/Cascade.java

    r12378 r12620  
    1111import java.util.regex.Pattern;
    1212
    13 import org.openstreetmap.josm.Main;
    1413import org.openstreetmap.josm.gui.mappaint.mapcss.CSSColors;
    1514import org.openstreetmap.josm.tools.ColorHelper;
     15import org.openstreetmap.josm.tools.Logging;
    1616import org.openstreetmap.josm.tools.Utils;
    1717
     
    7575        if (res == null) {
    7676            if (!suppressWarnings) {
    77                 Main.warn(String.format("Unable to convert property %s to type %s: found %s of type %s!", key, klass, o, o.getClass()));
     77                Logging.warn(String.format("Unable to convert property %s to type %s: found %s of type %s!", key, klass, o, o.getClass()));
    7878            }
    7979            return def;
     
    181181                return Float.valueOf((String) o);
    182182            } catch (NumberFormatException e) {
    183                 if (Main.isDebugEnabled()) {
    184                     Main.debug('\'' + (String) o + "' cannot be converted to float");
    185                 }
     183                Logging.debug("'{0}' cannot be converted to float", o);
    186184            }
    187185        }
Note: See TracChangeset for help on using the changeset viewer.