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/io/session/SessionReader.java

    r12542 r12620  
    4545import org.openstreetmap.josm.tools.CheckParameterUtil;
    4646import org.openstreetmap.josm.tools.JosmRuntimeException;
     47import org.openstreetmap.josm.tools.Logging;
    4748import org.openstreetmap.josm.tools.MultiMap;
    4849import org.openstreetmap.josm.tools.Utils;
     
    447448            active = !activeAtt.isEmpty() ? (Integer.parseInt(activeAtt)-1) : -1;
    448449        } catch (NumberFormatException e) {
    449             Main.warn("Unsupported value for 'active' layer attribute. Ignoring it. Error was: "+e.getMessage());
     450            Logging.warn("Unsupported value for 'active' layer attribute. Ignoring it. Error was: "+e.getMessage());
    450451            active = -1;
    451452        }
     
    468469                        idx = Integer.valueOf(e.getAttribute("index"));
    469470                    } catch (NumberFormatException ex) {
    470                         Main.warn(ex);
     471                        Logging.warn(ex);
    471472                    }
    472473                    if (idx == null) {
     
    485486                                d = Integer.valueOf(sd);
    486487                            } catch (NumberFormatException ex) {
    487                                 Main.warn(ex);
     488                                Logging.warn(ex);
    488489                            }
    489490                            if (d != null) {
     
    567568                }
    568569                if (exception != null) {
    569                     Main.error(exception);
     570                    Logging.error(exception);
    570571                    if (!GraphicsEnvironment.isHeadless()) {
    571572                        CancelOrContinueDialog dialog = new CancelOrContinueDialog();
     
    607608                    layer.setOpacity(opacity);
    608609                } catch (NumberFormatException ex) {
    609                     Main.warn(ex);
     610                    Logging.warn(ex);
    610611                }
    611612            }
     
    625626                    Double.parseDouble(centerEl.getAttribute("lon")));
    626627        } catch (NumberFormatException ex) {
    627             Main.warn(ex);
     628            Logging.warn(ex);
    628629        }
    629630        if (center == null) return null;
     
    634635            return new SessionViewportData(center, scale);
    635636        } catch (NumberFormatException ex) {
    636             Main.warn(ex);
     637            Logging.warn(ex);
    637638            return null;
    638639        }
Note: See TracChangeset for help on using the changeset viewer.