Ignore:
Timestamp:
2016-06-14T19:26:16+02:00 (4 years ago)
Author:
Don-vip
Message:

fix #12949 - Use test rule instead of JOSMFixture to speed up tests (patch by michael2402) - gsoc-core

File:
1 edited

Legend:

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

    r10364 r10373  
    9090        if (api == null) {
    9191            api = new OsmApi(serverUrl);
    92             instances.put(serverUrl, api);
     92            cacheInstance(api);
    9393        }
    9494        return api;
     95    }
     96
     97    protected static void cacheInstance(OsmApi api) {
     98        instances.put(api.getServerUrl(), api);
    9599    }
    96100
Note: See TracChangeset for help on using the changeset viewer.