Ignore:
Timestamp:
2013-12-11T00:51:08+01:00 (11 years ago)
Author:
Don-vip
Message:

Sonar - remove warnings related to the static preferences initialization in instance methods

Location:
trunk/test/unit/org/openstreetmap/josm/gui/dialogs/relation/sort
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/dialogs/relation/sort/RelationSorterTest.java

    r6461 r6471  
    2626    @BeforeClass
    2727    public static void loadData() throws FileNotFoundException, IllegalDataException {
    28         Main.pref = new Preferences();
     28        Main.initApplicationPreferences();
    2929        Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); // Mercator
    3030        testDataset = OsmReader.parseDataSet(new FileInputStream("data_nodist/relation_sort.osm"), NullProgressMonitor.INSTANCE);
  • trunk/test/unit/org/openstreetmap/josm/gui/dialogs/relation/sort/WayConnectionTypeCalculatorTest.java

    r6467 r6471  
    2727    @BeforeClass
    2828    public static void loadData() throws FileNotFoundException, IllegalDataException {
    29         Main.pref = new Preferences();
     29        Main.initApplicationPreferences();
    3030        Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); // Mercator
    3131        testDataset = OsmReader.parseDataSet(new FileInputStream("data_nodist/relation_sort.osm"), NullProgressMonitor.INSTANCE);
Note: See TracChangeset for help on using the changeset viewer.