Ignore:
Timestamp:
2015-03-08T23:39:57+01:00 (9 years ago)
Author:
Don-vip
Message:

fix Sonar issue squid:S2444 - Lazy initialization of "static" fields should be "synchronized"

File:
1 edited

Legend:

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

    r7937 r8126  
    1717public class OsmWriterFactory {
    1818
    19     public static OsmWriterFactory theFactory;
     19    public static volatile OsmWriterFactory theFactory;
    2020    public static OsmWriter createOsmWriter(PrintWriter out, boolean osmConform, String version) {
    2121        // pre-set factory with this default implementation; can still be overwritten
Note: See TracChangeset for help on using the changeset viewer.