Changeset 11324 in josm for trunk/test/performance


Ignore:
Timestamp:
2016-11-27T05:16:30+01:00 (7 years ago)
Author:
Don-vip
Message:

findbugs

Location:
trunk/test/performance/org/openstreetmap/josm
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/performance/org/openstreetmap/josm/PerformanceTestUtils.java

    r10674 r11324  
    112112    }
    113113
     114    @SuppressFBWarnings(value = "DM_GC")
    114115    private static void cleanSystem() {
    115116        System.gc();
  • trunk/test/performance/org/openstreetmap/josm/data/osm/KeyValuePerformanceTest.java

    r11114 r11324  
    88import static org.junit.Assert.assertTrue;
    99
     10import java.security.SecureRandom;
    1011import java.util.ArrayList;
    1112import java.util.Random;
     
    125126    public void generateTestStrings() {
    126127        testStrings.clear();
    127         random = new Random(123);
     128        random = new SecureRandom();
    128129        for (int i = 0; i < TEST_STRING_COUNT; i++) {
    129130            testStrings.add(RandomStringUtils.random(10, 0, 0, true, true, null, random));
  • trunk/test/performance/org/openstreetmap/josm/data/osm/OsmDataGenerator.java

    r8926 r11324  
    33
    44import java.io.File;
     5import java.security.SecureRandom;
    56import java.util.ArrayList;
    67import java.util.Random;
     
    4142         */
    4243        public RandomStringList(int seed, int size) {
    43             random = new Random(seed);
     44            random = new SecureRandom();
     45            random.setSeed(seed);
    4446            strings = new String[size];
    4547            interned = new String[size];
     
    8890        protected DataGenerator(String datasetName) {
    8991            this.datasetName = datasetName;
    90             this.random = new Random(1234);
     92            this.random = new SecureRandom();
    9193        }
    9294
     
    126128         */
    127129        public File getFile() {
    128             return new File(DATA_DIR + File.separator + datasetName + ".osm");
     130            return new File(DATA_DIR, datasetName + ".osm");
    129131        }
    130132
     
    139141        @Override
    140142        public String toString() {
    141             return "DataGenerator [datasetName=" + datasetName + "]";
     143            return "DataGenerator [datasetName=" + datasetName + ']';
    142144        }
    143145    }
  • trunk/test/performance/org/openstreetmap/josm/gui/mappaint/MapRendererPerformanceTest.java

    r10697 r11324  
    166166        public int noIterations = 7;
    167167        public boolean dumpImage = DUMP_IMAGE;
    168         public boolean skipDraw = false;
    169168        public boolean clearStyleCache = true;
    170169        public String label = "";
     
    264263        test.bounds = BOUNDS_CITY_ALL;
    265264        test.label = "big";
    266         test.skipDraw = true;
    267265        test.dumpImage = false;
    268266        test.noWarmup = 3;
Note: See TracChangeset for help on using the changeset viewer.