Changeset 11656 in josm


Ignore:
Timestamp:
2017-03-03T22:44:50+01:00 (2 years ago)
Author:
Don-vip
Message:

FindBugs - ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/Main.java

    r11650 r11656  
    493493     * @see #initialize()
    494494     */
    495     public Main() {
    496         main = this;
     495    protected Main() {
     496        setInstance(this);
    497497        mainPanel.addMapFrameListener((o, n) -> redoUndoListener.commandChanged(0, 0));
     498    }
     499
     500    private static void setInstance(Main instance) {
     501        main = instance;
    498502    }
    499503
Note: See TracChangeset for help on using the changeset viewer.